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

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 - 300.0
.NET Windows200.0 - 300.0
.NET Android200.3 - 300.0
.NET iOS200.0 - 300.0
.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

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 - 300.0
.NET Windows200.0 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.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

string comment

A comment value.

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 - 300.0
.NET Windows200.0 - 300.0
.NET Android200.3 - 300.0
.NET iOS200.0 - 300.0
.NET Framework200.0 - 200.8
UWP200.0 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.