Class UserAgentHelper (4.4.0)

public static class UserAgentHelper

Common code used for building user agents and related headers in REST libraries.

Inheritance

object > UserAgentHelper

Namespace

Google.Api.Gax.Rest

Assembly

Google.Api.Gax.Rest.dll

Methods

GetDefaultUserAgent(Type)

public static string GetDefaultUserAgent(Type type)

Formats a user agent suitable for REST client libraries.

Parameter
NameDescription
typeType

The type to extract the version number from.

Returns
TypeDescription
string

A user agent value.