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 |
---|---|
Dictionary |
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 |
---|---|---|
Metadata |
other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System. |
true if the current object is equal to the |
Equals(Object)
Performs a deep-equals comparison.
System.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj |
Returns
Type | Description |
---|---|
System. |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
A hash code for this instance. |
GetMetadata(String)
Gets the metadata.
Declaration
public string GetMetadata(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The metadata key. |
Returns
Type | Description |
---|---|
System. |
The metadata value; or |
SetMetadata(String, String)
Sets a metadata value.
Declaration
public void SetMetadata(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
System. |
value | The value. |
ShouldSerialize_metadata()
Needed for JSON serialization.
Declaration
public bool ShouldSerialize_metadata()
Returns
Type | Description |
---|---|
System. |
|
Implements
System.IEquatable<>