你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
NamespaceManager.CreateEventHubIfNotExists 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateEventHubIfNotExists(EventHubDescription) |
创建事件中心(如果不存在)。 |
CreateEventHubIfNotExists(String) |
创建事件中心(如果不存在)。 |
CreateEventHubIfNotExists(EventHubDescription)
创建事件中心(如果不存在)。
public Microsoft.ServiceBus.Messaging.EventHubDescription CreateEventHubIfNotExists(Microsoft.ServiceBus.Messaging.EventHubDescription description);
member this.CreateEventHubIfNotExists : Microsoft.ServiceBus.Messaging.EventHubDescription -> Microsoft.ServiceBus.Messaging.EventHubDescription
Public Function CreateEventHubIfNotExists (description As EventHubDescription) As EventHubDescription
参数
- description
- EventHubDescription
描述 EventHubDescription 要创建的事件中心的对象。
返回
返回 对象EventHubDescription 。
适用于
CreateEventHubIfNotExists(String)
创建事件中心(如果不存在)。
public Microsoft.ServiceBus.Messaging.EventHubDescription CreateEventHubIfNotExists(string path);
member this.CreateEventHubIfNotExists : string -> Microsoft.ServiceBus.Messaging.EventHubDescription
Public Function CreateEventHubIfNotExists (path As String) As EventHubDescription
参数
- path
- String
事件中心的路径。
返回
返回一个 EventHubDescription 对象。