你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
NamespaceManager.GetTopicsAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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} ----------------------------------------------------------------------------------------- 可用属性: Path |ModifiedAt |访问At |CreatedAt |MessageCount 逻辑运算符:Eq |Ne |Gt |Ge |Lt |Le Value: 相应属性类型的值 Functions: startsthwith ({Propery}, {Value})