wpf-devexpress-dot-xpf-dot-map-dot-mapwebrequesteventargs.md
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
public string UserAgent { get; set; }
Public Property UserAgent As String
| Type | Description |
|---|---|
| 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
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
private void Provider_WebRequest(object sender, MapWebRequestEventArgs e) {
e.UserAgent = "Test Map App";
}
wpf-map-connect-to-openstreetmap/VB/MainWindow.xaml.vb#L16
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
Private Sub Provider_WebRequest(ByVal sender As Object, ByVal e As MapWebRequestEventArgs)
e.UserAgent = "Test Map App"
End Sub
See Also