Show / Hide Table of Contents

Class PropertyObject

A simple class in which JSON can be deserialized.

Inheritance
System.Object
PropertyObject
RosterDocument
RosterDocumentOld
MetadataItem
Implements
IPropertyObject
Namespace: Microsoft.XboxStudios.SQTech.Roster
Assembly: Microsoft.GNS.Roster.Common.dll
Syntax
public class PropertyObject : object, IPropertyObject

Fields

View Source

Empty

Represents an empty or unset version of this object.

Declaration
public static readonly PropertyObject Empty
Field Value
Type Description
PropertyObject

Properties

View Source

RosterProperties

Gets JSON values not deserialized into other properties.

Declaration
public IDictionary<string, JToken> RosterProperties { get; }
Property Value
Type Description
IDictionary<System.String, JToken>

Methods

View Source

Equals(Nullable<Object>)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
System.Nullable<System.Object> obj
Returns
Type Description
System.Boolean
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
View Source

GetList(String)

Gets a property as a list of strings.

Declaration
public virtual IList<string> GetList(string propertyName)
Parameters
Type Name Description
System.String propertyName

The name of the property to get.

Returns
Type Description
IList<System.String>

The property as a list of strings.

View Source

GetString(String)

Gets a property as a string.

Declaration
public virtual string GetString(string propertyName)
Parameters
Type Name Description
System.String propertyName

The name of the property to get.

Returns
Type Description
System.String

The property as a string.

Implements

IPropertyObject
  • View Source
In This Article
Back to top Generated by DocFX