Share via


HubRoute(String, String, IEnumerable<String>, String, String) Constructor

Definition

Initializes a new instance of HubRoute.

public HubRoute (string name, string destinationType, System.Collections.Generic.IEnumerable<string> destinations, string nextHopType, string nextHop);
new Azure.ResourceManager.Network.Models.HubRoute : string * string * seq<string> * string * string -> Azure.ResourceManager.Network.Models.HubRoute
Public Sub New (name As String, destinationType As String, destinations As IEnumerable(Of String), nextHopType As String, nextHop As String)

Parameters

name
String

The name of the Route that is unique within a RouteTable. This name can be used to access this route.

destinationType
String

The type of destinations (eg: CIDR, ResourceId, Service).

destinations
IEnumerable<String>

List of all destinations.

nextHopType
String

The type of next hop (eg: ResourceId).

nextHop
String

NextHop resource ID.

Exceptions

name, destinationType, destinations, nextHopType or nextHop is null.

Applies to