Method AddUserAgentValue
AddUserAgentValue(IArcGISHttpConfiguration, ProductInfoHeaderValue)
Adds a custom value to the user agent string.
Declaration
public static IArcGISHttpConfiguration AddUserAgentValue(this IArcGISHttpConfiguration configuration, ProductInfoHeaderValue value)
Parameters
Type | Name | Description |
---|---|---|
IArcGISHttpConfiguration | configuration | HTTP Configuration |
System.Net.Http.Headers.ProductInfoHeaderValue | value | A user agent value to append to the user agent string. |
Returns
Type | Description |
---|---|
IArcGISHttpConfiguration | HTTP Configuration |
Remarks
Allows you to append a set of custom values to the user agent string, useful for tracking the application usage from a server endpoint. This method can be called multiple times to append more values.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.0 - 200.6 |
.NET | 200.0 - 200.6 |
.NET Windows | 200.0 - 200.6 |
.NET Android | 200.3 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 200.0 - 200.6 |
UWP | 200.0 - 200.6 |
AddUserAgentValue(IArcGISHttpConfiguration, String)
Adds a custom value to the user agent string.
Declaration
public static IArcGISHttpConfiguration AddUserAgentValue(this IArcGISHttpConfiguration configuration, string comment)
Parameters
Type | Name | Description |
---|---|---|
IArcGISHttpConfiguration | configuration | HTTP Configuration |
System.String | comment | A comment value. |
Returns
Type | Description |
---|---|
IArcGISHttpConfiguration | HTTP Configuration |
Remarks
Allows you to append a set of custom values to the user agent string, useful for tracking the application usage from a server endpoint. This method can be called multiple times to append more values.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.0 - 200.6 |
.NET | 200.0 - 200.6 |
.NET Windows | 200.0 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 200.0 - 200.6 |
UWP | 200.0 - 200.6 |
AddUserAgentValue(IArcGISHttpConfiguration, String, String)
Adds a custom value and version to the user agent string.
Declaration
public static IArcGISHttpConfiguration AddUserAgentValue(this IArcGISHttpConfiguration configuration, string comment, string productVersion)
Parameters
Type | Name | Description |
---|---|---|
IArcGISHttpConfiguration | configuration | HTTP Configuration |
System.String | comment | A comment value. |
System.String | productVersion | The product version value. |
Returns
Type | Description |
---|---|
IArcGISHttpConfiguration | HTTP Configuration |
Remarks
Allows you to append a set of custom values to the user agent string, useful for tracking the application usage from a server endpoint. This method can be called multiple times to append more values.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.0 - 200.6 |
.NET | 200.0 - 200.6 |
.NET Windows | 200.0 - 200.6 |
.NET Android | 200.3 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 200.0 - 200.6 |
UWP | 200.0 - 200.6 |