Class UserAgentHelper (4.0.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.