FetchAttachmentAsync

FetchAttachmentAsync(IConnection, int, string)

获取指定的附件

public Task<Attachment> FetchAttachmentAsync(IConnection connection, int sequenceNumber, 
    string attachmentName)
范围类型描述
connectionIConnection连接到服务器
sequenceNumberInt32消息的序号
attachmentNameString附件名称

返回值

任务对象,具有此操作的委托

也可以看看


FetchAttachmentAsync(int, string)

获取指定的附件

public Task<Attachment> FetchAttachmentAsync(int sequenceNumber, string attachmentName)
范围类型描述
sequenceNumberInt32消息的序号
attachmentNameString附件名称

返回值

任务对象,具有此操作的委托

也可以看看


FetchAttachmentAsync(IConnection, int, string, CancellationToken)

获取指定的附件

public Task<Attachment> FetchAttachmentAsync(IConnection connection, int sequenceNumber, 
    string attachmentName, CancellationToken token)
范围类型描述
connectionIConnection连接到服务器
sequenceNumberInt32消息的序号
attachmentNameString附件名称
tokenCancellationToken传播应取消操作的通知。

返回值

任务对象,具有此操作的委托

也可以看看


FetchAttachmentAsync(int, string, CancellationToken)

获取指定的附件

public Task<Attachment> FetchAttachmentAsync(int sequenceNumber, string attachmentName, 
    CancellationToken token)
范围类型描述
sequenceNumberInt32消息的序号
attachmentNameString附件名称
tokenCancellationToken传播应取消操作的通知。

返回值

任务对象,具有此操作的委托

也可以看看