Attachments class
表示附件的类。
构造函数
Attachments(Connector |
创建附件。 |
方法
构造函数详细信息
Attachments(ConnectorClientContext)
方法详细信息
getAttachment(string, string, RequestOptionsBase)
将命名视图作为二进制内容获取
function getAttachment(attachmentId: string, viewId: string, options?: RequestOptionsBase): Promise<Models.AttachmentsGetAttachmentResponse>
参数
- attachmentId
-
string
附件 ID
- viewId
-
string
查看 attachmentInfo 中的 ID
- 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
附件 ID
- viewId
-
string
查看 attachmentInfo 中的 ID
- options
-
RequestOptionsBase
可选参数
- callback
-
ServiceCallback<void>
回调
getAttachment(string, string, ServiceCallback<void>)
function getAttachment(attachmentId: string, viewId: string, callback: ServiceCallback<void>)
参数
- attachmentId
-
string
附件 ID
- viewId
-
string
查看 attachmentInfo 中的 ID
- callback
-
ServiceCallback<void>
回调
getAttachmentInfo(string, RequestOptionsBase)
获取描述附件视图的 AttachmentInfo 结构
function getAttachmentInfo(attachmentId: string, options?: RequestOptionsBase): Promise<Models.AttachmentsGetAttachmentInfoResponse>
参数
- attachmentId
-
string
附件 ID
- options
-
RequestOptionsBase
返回
Promise<Models.AttachmentsGetAttachmentInfoResponse>
Promise<Models.AttachmentsGetAttachmentInfoResponse>
getAttachmentInfo(string, RequestOptionsBase, ServiceCallback<AttachmentInfo>)
function getAttachmentInfo(attachmentId: string, options: RequestOptionsBase, callback: ServiceCallback<AttachmentInfo>)
参数
- attachmentId
-
string
附件 ID
- options
-
RequestOptionsBase
可选参数
- callback
-
ServiceCallback<AttachmentInfo>
回调
getAttachmentInfo(string, ServiceCallback<AttachmentInfo>)
function getAttachmentInfo(attachmentId: string, callback: ServiceCallback<AttachmentInfo>)
参数
- attachmentId
-
string
附件 ID
- callback
-
ServiceCallback<AttachmentInfo>
回调