Show / Hide Table of Contents

Class RosterDocument

Represents a basic Azure document DB document.

Inheritance
object
PropertyObject
RosterDocument
PermissionEntityRefList
RosterObjectRefList
RosterPrincipalRefList
Implements
IRosterDocument
IRosterIdentity
IPropertyObject
IVerifiable
Inherited Members
PropertyObject.RosterProperties
PropertyObject.GetList(string)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.GNS.Roster
Assembly: Microsoft.XboxStudios.SQTech.Roster.Common.dll
Syntax
public class RosterDocument : PropertyObject, IRosterDocument, IRosterIdentity, IPropertyObject, IVerifiable

Constructors

View Source

RosterDocument()

Initializes a new instance of the RosterDocument class.

Declaration
public RosterDocument()

Fields

View Source

Empty

Represents an empty or unset version of this object.

Declaration
public static readonly RosterDocument Empty
Field Value
Type Description
RosterDocument

Properties

View Source

AccessLevel

Gets or sets the access level to the document.

Declaration
[JsonIgnore]
public AccessLevel AccessLevel { get; set; }
Property Value
Type Description
AccessLevel
View Source

Attachments

Gets or sets references to blobs in Document DB or plain blob storage.

Declaration
[JsonProperty("_attachments")]
public string? Attachments { get; set; }
Property Value
Type Description
string
View Source

Container

Gets or sets the object container. Container names are case sensitive.

Declaration
[JsonProperty]
public string Container { get; set; }
Property Value
Type Description
string
View Source

Deleted

Gets a value indicating whether the item is deleted.

Declaration
[JsonIgnore]
public bool Deleted { get; }
Property Value
Type Description
bool
View Source

Description

Gets or sets the description of this role.

Declaration
public string Description { get; set; }
Property Value
Type Description
string
View Source

ETag

Gets an ETag of the resource required for optimistic concurrency control.

Declaration
[JsonProperty("_etag")]
public string? ETag { get; }
Property Value
Type Description
string
View Source

Id

Gets the object Id.

Declaration
[JsonConverter(typeof(GuidNoneAsEmptyStringConverter))]
[JsonProperty("id")]
public Guid Id { get; }
Property Value
Type Description
Guid
View Source

Metadata

Gets or sets the user data.

Declaration
[JsonProperty]
public IMetadataItem Metadata { get; set; }
Property Value
Type Description
IMetadataItem
View Source

Name

Gets or sets the object name. Names are case sensitive.

Declaration
[JsonProperty]
public string Name { get; set; }
Property Value
Type Description
string
View Source

Owner

Gets the object owner.

Declaration
[JsonConverter(typeof(GuidNoneAsEmptyStringConverter))]
[JsonProperty]
public Guid Owner { get; protected set; }
Property Value
Type Description
Guid
View Source

Rid

Gets a system generated, unique and hierarchical identifier of the resource.

Declaration
[JsonProperty("_rid")]
public string? Rid { get; }
Property Value
Type Description
string
View Source

Scope

Gets information about the scope of the object.

Declaration
[JsonProperty]
[JsonConverter(typeof(RosterScopeConverter))]
public Scope Scope { get; protected set; }
Property Value
Type Description
Scope
View Source

Self

Gets a unique addressable URI of the resource.

Declaration
[JsonProperty("_self")]
public string? Self { get; }
Property Value
Type Description
string
View Source

Timestamp

Gets the last updated time stamp of the resource.

Declaration
[JsonConverter(typeof(UnixDateTimeConverter))]
[JsonProperty("_ts")]
public DateTime Timestamp { get; }
Property Value
Type Description
DateTime

Methods

View Source

Equals(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
PropertyObject.Equals(object?)
View Source

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
PropertyObject.GetHashCode()
View Source

GetString(string)

Gets a property as a string.

Declaration
public override string GetString(string propertyName)
Parameters
Type Name Description
string propertyName

The name of the property to get.

Returns
Type Description
string

The property as a string.

Overrides
PropertyObject.GetString(string)
View Source

IsEmpty()

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.

View Source

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.

Implements

IRosterDocument
IRosterIdentity
IPropertyObject
IVerifiable
  • View Source
In this article
Back to top Generated by DocFX