Get Attachment Operation

This operation is used to get an attachment from a document.


public GetAttachmentOperation(string documentId, string name, AttachmentType type, string changeVector)

public class AttachmentResult
    public Stream Stream;
    public AttachmentDetails Details;

public class AttachmentDetails : AttachmentName
    public string ChangeVector;
    public string DocumentId;

public class AttachmentName
    public string Name;
    public string Hash;
    public string ContentType;
    public long Size;
documentId string ID of a document which will contain an attachment
name string Name of an attachment
type AttachmentType Specify whether getting an attachment from a document or from a revision.
(Document or Revision).
changeVector string The ChangeVector of the document or the revision to which the attachment belongs.
Mandatory when getting an attachment from a revision.
Used for concurrency checks (use null to skip the check).
Return Value
Stream Stream containing an attachment
ChangeVector Change vector of document
DocumentId ID of document
Name Name of attachment
Hash Hash of attachment
ContentType MIME content type of an attachment
Size Size of attachment


store.Operations.Send(new GetAttachmentOperation("orders/1-A",
    changeVector: null));