Share via


RouteProperties Constructors

Definition

Overloads

RouteProperties()

Initializes a new instance of the RouteProperties class.

RouteProperties(String, String, IList<String>, Boolean, String)

Initializes a new instance of the RouteProperties class.

RouteProperties()

Initializes a new instance of the RouteProperties class.

public RouteProperties ();
Public Sub New ()

Applies to

RouteProperties(String, String, IList<String>, Boolean, String)

Initializes a new instance of the RouteProperties class.

public RouteProperties (string name, string source, System.Collections.Generic.IList<string> endpointNames, bool isEnabled, string condition = default);
new Microsoft.Azure.Management.IotHub.Models.RouteProperties : string * string * System.Collections.Generic.IList<string> * bool * string -> Microsoft.Azure.Management.IotHub.Models.RouteProperties
Public Sub New (name As String, source As String, endpointNames As IList(Of String), isEnabled As Boolean, Optional condition As String = Nothing)

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
String

The source that the routing rule is to be applied to, such as DeviceMessages. Possible values include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents', 'DeviceConnectionStateEvents'

endpointNames
IList<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.

condition
String

The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language

Applies to