Condividi tramite


NamespaceManager.GetTopicsAsync Method

Definition

Overloads

GetTopicsAsync()

Asynchronously retrieves a collection of topics in a service namespace.

GetTopicsAsync(String)

Asynchronously retrieves a collection of topics in a service namespace.

GetTopicsAsync()

Asynchronously retrieves a collection of topics in a service namespace.

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

Returns

The asynchronous operation.

Applies to

GetTopicsAsync(String)

Asynchronously retrieves a collection of topics in a service namespace.

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

Parameters

filter
String

The string used to filter the topics to be retrieved.

Returns

The asynchronous operation.

Examples

var topicsWithMessages = await namespaceManager.GetTopicsAsync("messageCount Gt 0");
var topicsStartsWith = await namespaceManager.GetTopicsAsync($"startswith(path, 'topic') 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