RoutingRuleProperties Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET