Attachments class

表示附件的类。

构造函数

Attachments(ConnectorClientContext)

创建附件。

方法

getAttachment(string, string, RequestOptionsBase)

获取二进制内容的命名视图

getAttachment(string, string, RequestOptionsBase, ServiceCallback<void>)
getAttachment(string, string, ServiceCallback<void>)
getAttachmentInfo(string, RequestOptionsBase)

获取描述附件视图的 AttachmentInfo 结构

getAttachmentInfo(string, RequestOptionsBase, ServiceCallback<AttachmentInfo>)
getAttachmentInfo(string, ServiceCallback<AttachmentInfo>)

构造函数详细信息

Attachments(ConnectorClientContext)

创建附件。

new Attachments(client: ConnectorClientContext)

参数

client
ConnectorClientContext

对服务客户端的引用。

方法详细信息

getAttachment(string, string, RequestOptionsBase)

获取二进制内容的命名视图

function getAttachment(attachmentId: string, viewId: string, options?: RequestOptionsBase): Promise<Models.AttachmentsGetAttachmentResponse>

参数

attachmentId

string

附件 ID

viewId

string

view ID from 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

附件 ID

viewId

string

view ID from attachmentInfo

options

RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

getAttachment(string, string, ServiceCallback<void>)

function getAttachment(attachmentId: string, viewId: string, callback: ServiceCallback<void>)

参数

attachmentId

string

附件 ID

viewId

string

view ID from attachmentInfo

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>

回调