Resource Class
Definition
Represents an abstract resource type in the Azure DocumentDB database service. All Azure DocumentDB resources, such as Database, DocumentCollection, and Document extend this abstract type.
public abstract class Resource : Microsoft.Azure.Documents.JsonSerializable
- Inheritance
- Derived
Inherited Members
Microsoft.Azure.Documents.JsonSerializable
Constructors
| Resource() |
Initializes a new instance of the Resource class for the Azure DocumentDB database service. |
| Resource(Resource) |
Copy constructor for a Resource used in the Azure DocumentDB database service. |
Properties
| AltLink |
Gets the alt-link associated with the resource from the Azure DocumentDB database service. |
| ETag |
Gets the entity tag associated with the resource from the Azure DocumentDB database service. |
| Id |
Gets or sets the Id of the resource in the Azure DocumentDB database service. |
| ResourceId |
Gets or sets the Resource Id associated with the resource in the Azure DocumentDB database service. |
| SelfLink |
Gets the self-link associated with the resource from the Azure DocumentDB database service. |
| Timestamp |
Gets the last modified timestamp associated with the resource from the Azure DocumentDB database service. |
Methods
| GetPropertyValue<T>(String) |
Gets property value associated with the specified property name from the Azure DocumentDB database service. |
| SetPropertyValue(String, Object) |
Sets property value associated with the specified property name in the Azure DocumentDB database service. |
| ToByteArray() |
Serialize to a byte array via SaveTo for the Azure DocumentDB database service. |
Extension Methods
| IsDefined(Object) | |
| IsNull(Object) | |
| IsPrimitive(Object) |