Route Constructors
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.
Overloads
Route(String) |
Starts with an empty route |
Route(String, GeographicPosition[]) |
Creates a route from an ordered set of points |
Route(String, List<RoutePoint>, RoutePoint) |
Construct a route from a list of points. This gets precedence over an externally defined route. |
Route(String)
Starts with an empty route
public Route (string name);
new Iot.Device.Nmea0183.Route : string -> Iot.Device.Nmea0183.Route
Public Sub New (name As String)
Parameters
- name
- String
Name of new route
Applies to
Route(String, GeographicPosition[])
Creates a route from an ordered set of points
public Route (string name, params Iot.Device.Common.GeographicPosition[] points);
new Iot.Device.Nmea0183.Route : string * Iot.Device.Common.GeographicPosition[] -> Iot.Device.Nmea0183.Route
Public Sub New (name As String, ParamArray points As GeographicPosition())
Parameters
- name
- String
Name of the new route
- points
- GeographicPosition[]
Points of the route (ordered)
Applies to
Route(String, List<RoutePoint>, RoutePoint)
Construct a route from a list of points. This gets precedence over an externally defined route.
public Route (string name, System.Collections.Generic.List<Iot.Device.Nmea0183.RoutePoint> route, Iot.Device.Nmea0183.RoutePoint? nextPoint = default);
new Iot.Device.Nmea0183.Route : string * System.Collections.Generic.List<Iot.Device.Nmea0183.RoutePoint> * Iot.Device.Nmea0183.RoutePoint -> Iot.Device.Nmea0183.Route
Public Sub New (name As String, route As List(Of RoutePoint), Optional nextPoint As RoutePoint = Nothing)
Parameters
- name
- String
Name of route
- route
- List<RoutePoint>
The new route
- nextPoint
- RoutePoint
The next point on the route that is to be reached (optional, defaults to the first point)
Exceptions
Different semantic errors with the definition of the route.