Class MetadataContainer
An object that contains metadata in the form of a DictionaryEx<TKey, TValue>.
Inheritance
System.Object
MetadataContainer
Implements
System.IEquatable<MetadataContainer>
Inherited Members
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 |
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 |
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 |
|
Implements
System.IEquatable<>