你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CloudQueueClient.GetServicePropertiesAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetServicePropertiesAsync(QueueRequestOptions, OperationContext, CancellationToken) |
启动异步操作以获取队列服务的服务属性。 |
GetServicePropertiesAsync(QueueRequestOptions, OperationContext) |
启动异步操作以获取队列服务的服务属性。 |
GetServicePropertiesAsync(CancellationToken) |
启动异步操作以获取队列服务的服务属性。 |
GetServicePropertiesAsync() |
启动异步操作以获取队列服务的服务属性。 |
GetServicePropertiesAsync(QueueRequestOptions, OperationContext, CancellationToken)
启动异步操作以获取队列服务的服务属性。
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties> GetServicePropertiesAsync(Microsoft.Azure.Storage.Queue.QueueRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member GetServicePropertiesAsync : Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties>
override this.GetServicePropertiesAsync : Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties>
Public Overridable Function GetServicePropertiesAsync (options As QueueRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task(Of ServiceProperties)
参数
- options
- QueueRequestOptions
一个 QueueRequestOptions 对象,它指定请求的其他选项。
- operationContext
- OperationContext
一个 OperationContext 对象,它一个表示当前操作的上下文。
- cancellationToken
- CancellationToken
等待任务完成期间要观察的 CancellationToken。
返回
表示异步操作的 ServiceProperties 类型的 Task<TResult> 对象。
- 属性
适用于
GetServicePropertiesAsync(QueueRequestOptions, OperationContext)
启动异步操作以获取队列服务的服务属性。
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties> GetServicePropertiesAsync(Microsoft.Azure.Storage.Queue.QueueRequestOptions requestOptions, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member GetServicePropertiesAsync : Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties>
override this.GetServicePropertiesAsync : Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties>
Public Overridable Function GetServicePropertiesAsync (requestOptions As QueueRequestOptions, operationContext As OperationContext) As Task(Of ServiceProperties)
参数
- requestOptions
- QueueRequestOptions
一个 QueueRequestOptions 对象,它指定请求的其他选项。
- operationContext
- OperationContext
一个 OperationContext 对象,它一个表示当前操作的上下文。
返回
表示异步操作的 ServiceProperties 类型的 Task<TResult> 对象。
- 属性
适用于
GetServicePropertiesAsync(CancellationToken)
启动异步操作以获取队列服务的服务属性。
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties> GetServicePropertiesAsync(System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member GetServicePropertiesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties>
override this.GetServicePropertiesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties>
Public Overridable Function GetServicePropertiesAsync (cancellationToken As CancellationToken) As Task(Of ServiceProperties)
参数
- cancellationToken
- CancellationToken
等待任务完成期间要观察的 CancellationToken。
返回
表示异步操作的 ServiceProperties 类型的 Task<TResult> 对象。
- 属性
适用于
GetServicePropertiesAsync()
启动异步操作以获取队列服务的服务属性。
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties> GetServicePropertiesAsync();
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member GetServicePropertiesAsync : unit -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties>
override this.GetServicePropertiesAsync : unit -> System.Threading.Tasks.Task<Microsoft.Azure.Storage.Shared.Protocol.ServiceProperties>
Public Overridable Function GetServicePropertiesAsync () As Task(Of ServiceProperties)
返回
表示异步操作的 ServiceProperties 类型的 Task<TResult> 对象。
- 属性