Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0200.0 - 200.8
.NET200.0 - 200.8
.NET Windows200.0 - 200.8
.NET Android200.3 - 200.8
.NET iOS200.0 - 200.8
.NET Framework200.0 - 200.8
UWP200.0 - 200.8

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
TargetVersions
.NET Standard 2.0200.0 - 200.8
.NET200.0 - 200.8
.NET Windows200.0 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework200.0 - 200.8
UWP200.0 - 200.8

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
TargetVersions
.NET Standard 2.0200.0 - 200.8
.NET200.0 - 200.8
.NET Windows200.0 - 200.8
.NET Android200.3 - 200.8
.NET iOS200.0 - 200.8
.NET Framework200.0 - 200.8
UWP200.0 - 200.8
In This Article
Back to top Copyright © 2022 Esri.