Class UserAgentHelper (4.8.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
Name Description
type Type

The type to extract the version number from.

Returns
Type Description
string

A user agent value.