示例#1
0
 /// <summary>
 /// GetAttachmentInfo
 /// </summary>
 /// Get AttachmentInfo structure describing the attachment views
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='attachmentId'>
 /// attachment id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AttachmentInfo> GetAttachmentInfoAsync(this IAttachments operations, string attachmentId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetAttachmentInfoWithHttpMessagesAsync(attachmentId, null, cancellationToken).ConfigureAwait(false))
     {
         return(await _result.HandleErrorAsync <AttachmentInfo>().ConfigureAwait(false));
     }
 }