Back to Devexpress

MapWebRequestEventArgs.UserAgent Property

wpf-devexpress-dot-xpf-dot-map-dot-mapwebrequesteventargs.md

latest3.1 KB
Original Source

MapWebRequestEventArgs.UserAgent Property

Gets or sets the value of the user-agent HTTP header.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public string UserAgent { get; set; }
vb
Public Property UserAgent As String

Property Value

TypeDescription
String

A String value specifying the user-agent HTTP header.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the UserAgent property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-map-connect-to-openstreetmap/CS/MainWindow.xaml.cs#L12

csharp
private void OnWebRequest(object sender, DevExpress.Xpf.Map.MapWebRequestEventArgs e) {
    e.UserAgent = "DevExpress OpenStreetMapProvider example";
}

wpf-map-implement-a-custom-map-data-provider/CS/MainWindow.xaml.cs#L19

csharp
private void Provider_WebRequest(object sender, MapWebRequestEventArgs e) {
    e.UserAgent = "Test Map App";
}

wpf-map-connect-to-openstreetmap/VB/MainWindow.xaml.vb#L16

vb
Private Sub OnWebRequest(ByVal sender As Object, ByVal e As DevExpress.Xpf.Map.MapWebRequestEventArgs)
    e.UserAgent = "DevExpress OpenStreetMapProvider example"
End Sub

wpf-map-implement-a-custom-map-data-provider/VB/MainWindow.xaml.vb#L21

vb
Private Sub Provider_WebRequest(ByVal sender As Object, ByVal e As MapWebRequestEventArgs)
    e.UserAgent = "Test Map App"
End Sub

See Also

MapWebRequestEventArgs Class

MapWebRequestEventArgs Members

DevExpress.Xpf.Map Namespace