Share via


ServiceClient.UserAgent Property

Gets the UserAgent collection. This collection can be modified with custom user agent strings.

Namespace: Microsoft.WindowsAzure.Common
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Usage

'Usage
Dim instance As ServiceClient(Of T)
Dim value As HttpHeaderValueCollection(Of ProductInfoHeaderValue)

value = instance.UserAgent

Syntax

'Declaration
Public ReadOnly Property UserAgent As HttpHeaderValueCollection(Of ProductInfoHeaderValue)
public HttpHeaderValueCollection<ProductInfoHeaderValue> UserAgent { get; }
public:
property HttpHeaderValueCollection<ProductInfoHeaderValue^>^ UserAgent {
    HttpHeaderValueCollection<ProductInfoHeaderValue^>^ get ();
}
/** @property */
public HttpHeaderValueCollection<ProductInfoHeaderValue> get_UserAgent ()
public function get UserAgent () : HttpHeaderValueCollection<ProductInfoHeaderValue>

Property Value

The UserAgent collection. This collection can be modified with custom user agent strings.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

ServiceClient Class
ServiceClient Members
Microsoft.WindowsAzure.Common Namespace