Class ExtensionDocument
The ExtensionDocument class is a MongoDB document model encapsulating custom data, applied to other MongoDB documents, to further extend them.
Inheritance
System.Object
ExtensionDocument
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Common.Rest
Assembly: EPiServer.Social.Common.Rest.dll
Version: 1.5.4Syntax
public class ExtensionDocument
Constructors
ExtensionDocument(JObject, List<String>, String, String)
Constructor
Declaration
public ExtensionDocument(JObject data, List<string> typeHierarchy, string dataType, string qualifiedType)
Parameters
| Type | Name | Description |
|---|---|---|
| Newtonsoft.Json.Linq.JObject | data | Custom data to be applied as an extension |
| System.Collections.Generic.List<System.String> | typeHierarchy | Collection of type names identifying the custom data's type hierarchy |
| System.String | dataType | Full name of the extension data's actual type |
| System.String | qualifiedType | Qualified type name of the extension data's actual type |
Properties
Data
Gets the extension data encapsulated by this document.
Declaration
public JObject Data { get; }
Property Value
| Type | Description |
|---|---|
| Newtonsoft.Json.Linq.JObject |
DataType
Gets the full name of the extension data's actual type.
Declaration
public string DataType { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
QualifiedType
Gets the qualified type name of the extension data's actual type.
Declaration
public string QualifiedType { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
TypeHierarchy
Gets the collection of type names identifying the extension data's type hierarchy
Declaration
public List<string> TypeHierarchy { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String> |