A newer version of this page is available.
Switch to the current version.
BingItineraryItemWarning.Type Property
Gets the type of the warning.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
public BingItineraryWarningType Type { get; }
Public ReadOnly Property Type As BingItineraryWarningType
Property Value
Type | Description |
---|---|
BingItineraryWarningType | A BingItineraryWarningType enumeration value specifying the warning type. |
Examples
NOTE
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-get-routes-to-the-destination-point-using-the-bing-map-route-data-service-e4250.
Private Function ProcessWarnings(ByVal warnings As List(Of BingItineraryItemWarning)) As String
If warnings Is Nothing Then
Return ""
End If
Dim sb As New StringBuilder(ControlChars.Tab & ControlChars.Tab & "Warnings:" & ControlChars.Lf)
For i As Integer = 0 To warnings.Count - 1
sb.Append(String.Format(ControlChars.Tab & ControlChars.Tab & ControlChars.Tab & "Warning {0}:" & ControlChars.Lf, i + 1))
sb.Append(String.Format(ControlChars.Tab & ControlChars.Tab & ControlChars.Tab & "Type: {0}" & ControlChars.Lf, warnings(i).Type))
sb.Append(String.Format(ControlChars.Tab & ControlChars.Tab & ControlChars.Tab & "Text: {0}" & ControlChars.Lf, warnings(i).Text))
Next i
Return sb.ToString()
End Function
See Also
Feedback