Attachment Class

 

Updated: June 30, 2017

Represents a document attachment in the Azure DocumentDB database service.

Namespace:   Microsoft.Azure.Documents
Assembly:  Microsoft.Azure.Documents.Client (in Microsoft.Azure.Documents.Client.dll)


No code example is currently available or this language may not be supported.

NameDescription
System_CAPS_pubmethodAttachment

Initializes a new instance of an Attachment class for the Azure DocumentDB database service.

NameDescription
System_CAPS_pubproperty

Gets the alt-link associated with the resource from the Azure DocumentDB database service. (Inherited from Resource.)

System_CAPS_pubproperty

Gets or sets the MIME content type of the attachment in the Azure DocumentDB database service.

System_CAPS_pubproperty

Gets the entity tag associated with the resource from the Azure DocumentDB database service. (Inherited from Resource.)

System_CAPS_pubproperty

Gets or sets the Id of the resource in the Azure DocumentDB database service. (Inherited from Resource.)

System_CAPS_pubproperty

Gets or sets the media link associated with the attachment content in the Azure DocumentDB database service.

System_CAPS_pubproperty

Gets or sets the Resource Id associated with the resource in the Azure DocumentDB database service. (Inherited from Resource.)

System_CAPS_pubproperty

Gets the self-link associated with the resource from the Azure DocumentDB database service. (Inherited from Resource.)

System_CAPS_pubproperty

Gets the last modified timestamp associated with the resource from the Azure DocumentDB database service. (Inherited from Resource.)

NameDescription
System_CAPS_pubmethodEquals

(Inherited from Object.)

System_CAPS_protmethodFinalize

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode

(Inherited from Object.)

System_CAPS_pubmethodGetPropertyValue

Gets property value associated with the specified property name from the Azure DocumentDB database service. (Inherited from Resource.)

System_CAPS_pubmethodGetType

(Inherited from Object.)

System_CAPS_pubmethodLoadFrom

Loads the object from the specified JSON reader in the Azure DocumentDB database service. (Inherited from JsonSerializable.)

System_CAPS_protmethodMemberwiseClone

(Inherited from Object.)

System_CAPS_pubmethodSaveTo

Saves the object to the specified stream in the Azure DocumentDB database service. (Inherited from JsonSerializable.)

System_CAPS_pubmethodSetPropertyValue

Sets property value associated with the specified property name in the Azure DocumentDB database service. (Inherited from Resource.)

System_CAPS_pubmethodToByteArray

Serialize to a byte array via SaveTo for the Azure DocumentDB database service. (Inherited from Resource.)

System_CAPS_pubmethodToString

Returns the string representation of the object in the Azure DocumentDB database service. (Inherited from JsonSerializable.)

NameDescription
System_CAPS_pubmethodIsDefined

Determines if a certain property is defined or not. (Defined by TypeCheckFunctionsExtensions.)

System_CAPS_pubmethodIsNull

Determines if a certain property is null or not. (Defined by TypeCheckFunctionsExtensions.)

System_CAPS_pubmethodIsPrimitive

Determines if a certain property is of premitive JSON type. (Defined by TypeCheckFunctionsExtensions.)

Each document may contain zero or more attachments containing data of arbitrary formats like images, binary or large text blobs. The Attachment class represents the DocumentDB resource used to store information about the attachment like its location and MIME content type. The payload itself ("Media") is referenced through the MediaLink property. The Attachment class is a DynamicObject and can contain any custom metadata to be persisted. Attachments can be created as managed or unmanaged. If attachments are created as managed through DocumentDB, then it is assigned a system generated mediaLink. DocumentDB then automatically performs garbage collection on the media when parent document is deleted. You can reuse the mediaLink property to store an external location e.g., a file share or an Azure Blob Storage URI. DocumentDB will not perform garbage collection on mediaLinks for external locations.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: