Attachments class
代表 Attachments 的類別。
建構函式
Attachments(Connector |
建立附件。 |
方法
建構函式詳細資料
Attachments(ConnectorClientContext)
方法詳細資料
getAttachment(string, string, RequestOptionsBase)
取得具名檢視作為二進位內容
function getAttachment(attachmentId: string, viewId: string, options?: RequestOptionsBase): Promise<Models.AttachmentsGetAttachmentResponse>
參數
- attachmentId
-
string
附件標識碼
- viewId
-
string
檢視 attachmentInfo 中的標識符
- options
-
RequestOptionsBase
傳回
Promise<Models.AttachmentsGetAttachmentResponse>
Promise<Models.AttachmentsGetAttachmentResponse>
getAttachment(string, string, RequestOptionsBase, ServiceCallback<void>)
function getAttachment(attachmentId: string, viewId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
參數
- attachmentId
-
string
附件標識碼
- viewId
-
string
檢視 attachmentInfo 中的標識符
- options
-
RequestOptionsBase
選擇性參數
- callback
-
ServiceCallback<void>
回呼
getAttachment(string, string, ServiceCallback<void>)
function getAttachment(attachmentId: string, viewId: string, callback: ServiceCallback<void>)
參數
- attachmentId
-
string
附件標識碼
- viewId
-
string
檢視 attachmentInfo 中的標識符
- callback
-
ServiceCallback<void>
回呼
getAttachmentInfo(string, RequestOptionsBase)
取得描述附件檢視的 AttachmentInfo 結構
function getAttachmentInfo(attachmentId: string, options?: RequestOptionsBase): Promise<Models.AttachmentsGetAttachmentInfoResponse>
參數
- attachmentId
-
string
附件標識碼
- options
-
RequestOptionsBase
傳回
Promise<Models.AttachmentsGetAttachmentInfoResponse>
Promise<Models.AttachmentsGetAttachmentInfoResponse>
getAttachmentInfo(string, RequestOptionsBase, ServiceCallback<AttachmentInfo>)
function getAttachmentInfo(attachmentId: string, options: RequestOptionsBase, callback: ServiceCallback<AttachmentInfo>)
參數
- attachmentId
-
string
附件標識碼
- options
-
RequestOptionsBase
選擇性參數
- callback
-
ServiceCallback<AttachmentInfo>
回呼
getAttachmentInfo(string, ServiceCallback<AttachmentInfo>)
function getAttachmentInfo(attachmentId: string, callback: ServiceCallback<AttachmentInfo>)
參數
- attachmentId
-
string
附件標識碼
- callback
-
ServiceCallback<AttachmentInfo>
回呼