Class MetadataItem
A base implementation of the interface user objects must implement in order to work with the Roster client.
Inheritance
System.Object
MetadataItem
Assembly: Microsoft.GNS.Roster.Common.dll
public class MetadataItem : PropertyObject, IMetadataItem, IPropertyObject, IVerifiable
Fields
View Source
Represents an empty or unset version of this object.
Declaration
public static readonly MetadataItem Empty
Field Value
Properties
View Source
Declaration
public string MetadataContainer { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
MetadataContext
Declaration
public IMetadataContext MetadataContext { get; }
Property Value
Type |
Description |
IMetadataContext |
|
View Source
Declaration
public string MetadataName { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
Declaration
public string MetadataVersion { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
View Source
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
System.Nullable<System.Object> |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
View Source
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
View Source
Determines if the object is equal to its 'Empty' value.
Declaration
public virtual bool IsEmpty()
Returns
Type |
Description |
System.Boolean |
True if the object is equal to its 'Empty' value. Otherwise, false.
|
View Source
Determines if an object is in a valid state.
Declaration
public virtual bool IsValid()
Returns
Type |
Description |
System.Boolean |
True if the object is valid. Otherwise, false.
|
Implements
IMetadata