共用方式為


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