Class MetadataItem
A base implementation of the interface user objects must implement in order to work with the Roster client.
Inherited Members
Namespace: Microsoft.XboxStudios.SQTech.Roster
Assembly: Microsoft.XboxStudios.SQTech.Roster.Common.dll
Syntax
public class MetadataItem : PropertyObject, IMetadataItem, IPropertyObject, IVerifiable
Fields
View SourceEmpty
Represents an empty or unset version of this object.
Declaration
public static readonly MetadataItem Empty
Field Value
Type | Description |
---|---|
MetadataItem |
Properties
View SourceMetadataContainer
Gets or sets the container name.
Declaration
public string MetadataContainer { get; set; }
Property Value
Type | Description |
---|---|
string |
MetadataDatabaseVersion
Gets the database version of the item.
Declaration
public Guid MetadataDatabaseVersion { get; }
Property Value
Type | Description |
---|---|
Guid |
MetadataItemContext
Gets the context of the data.
Declaration
public IMetadataItemContext MetadataItemContext { get; }
Property Value
Type | Description |
---|---|
IMetadataItemContext |
MetadataName
Gets or sets the name of the item.
Declaration
public string MetadataName { get; set; }
Property Value
Type | Description |
---|---|
string |
MetadataVersion
Gets or sets the version of the item.
Declaration
public string MetadataVersion { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceEquals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
View SourceIsEmpty()
Determines if the object is equal to its 'Empty' value.
Declaration
public virtual bool IsEmpty()
Returns
Type | Description |
---|---|
bool | True if the object is equal to its 'Empty' value. Otherwise, false. |
IsValid()
Determines if an object is in a valid state.
Declaration
public virtual bool IsValid()
Returns
Type | Description |
---|---|
bool | True if the object is valid. Otherwise, false. |