Class UserAgentHelper (4.3.1)

public static class UserAgentHelper

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

Inheritance

object > UserAgentHelper

Namespace

GoogleGoogle.ApiGaxRest

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.