Search Results for

    Show / Hide Table of Contents

    Class MetadataContainer

    An object that contains metadata in the form of a DictionaryEx<TKey, TValue>.

    Inheritance
    System.Object
    ExtensionDataContainer
    MetadataContainer
    DependencyFile
    Document
    File
    Fragment
    MarkupData
    ParagraphUnit
    FileSkeleton
    SkeletonItem
    TranslationOrigin
    Implements
    System.IEquatable<MetadataContainer>
    Inherited Members
    ExtensionDataContainer.ExtensionData
    Namespace: Sdl.Core.Bcm.BcmModel
    Assembly: Sdl.Core.Bcm.BcmModel.dll
    Syntax
    public abstract class MetadataContainer : ExtensionDataContainer

    Constructors

    MetadataContainer()

    Declaration
    protected MetadataContainer()

    Properties

    Metadata

    Gets or sets the metadata.

    Declaration
    public DictionaryEx<string, string> Metadata { get; set; }
    Property Value
    Type Description
    DictionaryEx<System.String, System.String>

    The metadata.

    Methods

    Equals(MetadataContainer)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(MetadataContainer other)
    Parameters
    Type Name Description
    MetadataContainer other

    An object to compare with this object.

    Returns
    Type Description
    System.Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    Equals(Object)

    Performs a deep-equals comparison.
    System.Object.Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A hash code for this instance.

    GetMetadata(String)

    Gets the metadata.

    Declaration
    public string GetMetadata(string key)
    Parameters
    Type Name Description
    System.String key

    The metadata key.

    Returns
    Type Description
    System.String

    The metadata value; or null if the key was not found.

    SetMetadata(String, String)

    Sets a metadata value.

    Declaration
    public void SetMetadata(string key, string value)
    Parameters
    Type Name Description
    System.String key

    The key.

    System.String value

    The value.

    ShouldSerialize_metadata()

    Needed for JSON serialization.

    Declaration
    public bool ShouldSerialize_metadata()
    Returns
    Type Description
    System.Boolean

    True if this instance should be serialized; otherwise False.

    Implements

    System.IEquatable<>

    On this page

    Back to top Generated by DocFX