IQueueingServiceGetQueueMetadataAsyncT Method (QueueName, CancellationToken) |
This API is preliminary and subject to change.
Gets the metadata associated with a queue, as a strongly-typed object.
Namespace: net.openstack.Core.ProvidersAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax Task<T> GetQueueMetadataAsync<T>(
QueueName queueName,
CancellationToken cancellationToken
)
where T : class
Function GetQueueMetadataAsync(Of T As Class) (
queueName As QueueName,
cancellationToken As CancellationToken
) As Task(Of T)
generic<typename T>
where T : ref class
Task<T>^ GetQueueMetadataAsync(
QueueName^ queueName,
CancellationToken cancellationToken
)
abstract GetQueueMetadataAsync :
queueName : QueueName *
cancellationToken : CancellationToken -> Task<'T> when 'T : not struct
Parameters
- queueName
- Type: net.openstack.Core.Domain.QueuesQueueName
The queue name. - cancellationToken
- Type: System.ThreadingCancellationToken
The CancellationToken that the task will observe.
Type Parameters
- T
- The type of metadata associated with the queue.
Return Value
Type:
TaskTA
Task object representing the asynchronous operation. When the task completes successfully, the
Result property will contain a deserialized object of type
T representing the metadata associated with the queue.
Exceptions Exception | Condition |
---|
ArgumentNullException | If queueName is . |
JsonSerializationException | If an error occurs while deserializing the metadata. |
WebException | If the REST request does not return successfully. |
Version Information .NET Framework
Supported in: 4.5
openstack.net
Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also