NamespaceManager.GetTopicsAsync メソッド

定義

オーバーロード

GetTopicsAsync()

サービス名前空間内のトピックのコレクションを非同期に取得します。

GetTopicsAsync(String)

サービス名前空間内のトピックのコレクションを非同期に取得します。

GetTopicsAsync()

サービス名前空間内のトピックのコレクションを非同期に取得します。

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))

戻り値

非同期操作。

適用対象

GetTopicsAsync(String)

サービス名前空間内のトピックのコレクションを非同期に取得します。

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))

パラメーター

filter
String

取得するトピックをフィルター処理するために使用される文字列。

戻り値

非同期操作。

var topicsWithMessages = await namespaceManager.GetTopicsAsync("messageCount Gt 0");
var topicsStartsWith = await namespaceManager.GetTopicsAsync($"startswith(path, 'topic') eq true");

注釈

フィルター式の形式: {Propery} {Logical Operator} {Value} AND {Filter expression} {Function} {Logical Operator} {Value} AND {Filter expression} ----------------------------------------------------------------------------------------- Available properties: Path |ModifiedAt |AccessedAt |CreatedAt |MessageCount 論理演算子: Eq |Ne |Gt |Ge |Lt |Le Value: 対応するプロパティ型 Functions の値: startswith({Propery}, {Value})

適用対象