你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RoutingRuleProperties 构造函数

定义

初始化 RoutingRuleProperties 的新实例。

public RoutingRuleProperties (string name, Azure.ResourceManager.IotHub.Models.IotHubRoutingSource source, System.Collections.Generic.IEnumerable<string> endpointNames, bool isEnabled);
new Azure.ResourceManager.IotHub.Models.RoutingRuleProperties : string * Azure.ResourceManager.IotHub.Models.IotHubRoutingSource * seq<string> * bool -> Azure.ResourceManager.IotHub.Models.RoutingRuleProperties
Public Sub New (name As String, source As IotHubRoutingSource, endpointNames As IEnumerable(Of String), isEnabled As Boolean)

参数

name
String

路由的名称。 名称只能包含字母数字字符、句点、下划线、连字符,最大长度为 64 个字符,并且必须是唯一的。

source
IotHubRoutingSource

要应用路由规则的源,例如 DeviceMessages。

endpointNames
IEnumerable<String>

满足条件的消息将路由到的终结点列表。 目前只允许使用一个终结点。

isEnabled
Boolean

用于指定是否启用路由。

例外

nameendpointNames 为 null。

适用于