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

RoutingRuleProperties Constructor

Definition

Initializes a new instance of 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)

Parameters

name
String

The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.

source
IotHubRoutingSource

The source that the routing rule is to be applied to, such as DeviceMessages.

endpointNames
IEnumerable<String>

The list of endpoints to which messages that satisfy the condition are routed. Currently only one endpoint is allowed.

isEnabled
Boolean

Used to specify whether a route is enabled.

Exceptions

name or endpointNames is null.

Applies to