NamespaceManager.GetQueuesAsync NamespaceManager.GetQueuesAsync NamespaceManager.GetQueuesAsync Method

Definition

Overloads

GetQueuesAsync() GetQueuesAsync() GetQueuesAsync()

Asynchronously retrieves an enumerable collection of all queues in the service namespace.

GetQueuesAsync(String) GetQueuesAsync(String) GetQueuesAsync(String)

Asynchronously retrieves an enumerable collection of all queues in the service namespace with specified filter.

GetQueuesAsync() GetQueuesAsync() GetQueuesAsync()

Asynchronously retrieves an enumerable collection of all queues in the service namespace.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.QueueDescription>> GetQueuesAsync ();
member this.GetQueuesAsync : unit -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.QueueDescription>>
Public Function GetQueuesAsync () As Task(Of IEnumerable(Of QueueDescription))

Returns

The asynchronous operation.

GetQueuesAsync(String) GetQueuesAsync(String) GetQueuesAsync(String)

Asynchronously retrieves an enumerable collection of all queues in the service namespace with specified filter.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.QueueDescription>> GetQueuesAsync (string filter);
member this.GetQueuesAsync : string -> System.Threading.Tasks.Task<seq<Microsoft.ServiceBus.Messaging.QueueDescription>>
Public Function GetQueuesAsync (filter As String) As Task(Of IEnumerable(Of QueueDescription))

Parameters

filter
String String String

The string used to filter the queues to be retrieved.

Returns

The asynchronous operation.

Examples


  var queuesWithMessages = await namespaceManager.GetQueuesAsync("messageCount Gt 0");
  var queuesStartsWith = await namespaceManager.GetQueuesAsync($"startswith(path, 'queue') eq true");

Remarks

Filter expression formats: {Propery} {Logical Operator} {Value} AND {Filter expression}

                        {Function} {Logical Operator} {Value} AND {Filter expression}

Available properties: Path | ModifiedAt | AccessedAt | CreatedAt | MessageCount

Logical operators: Eq | Ne | Gt | Ge | Lt | Le

Value: A value of the corresponding property type

Functions: startswith({Propery}, {Value})

Applies to