<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [4.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.VersionHeaderBuilder)
- [4.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.8.0/Google.Api.Gax.VersionHeaderBuilder)
- [4.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.4.0/Google.Api.Gax.VersionHeaderBuilder)
- [4.3.1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.3.1/Google.Api.Gax.VersionHeaderBuilder)
- [4.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.2.0/Google.Api.Gax.VersionHeaderBuilder)
- [4.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.0.0/Google.Api.Gax.VersionHeaderBuilder)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/3.2.0/Google.Api.Gax.VersionHeaderBuilder)

    public sealed class VersionHeaderBuilder

Helps build version strings for the x-goog-api-client header.
The value is a space-separated list of name/value pairs, where the value
should be a semantic version string. Names must be unique.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> VersionHeaderBuilder

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)

## Namespace

[Google.Api.Gax](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax)

## Assembly

Google.Api.Gax.dll

## Fields

### HeaderName

    public const string HeaderName = "x-goog-api-client"

The name of the header to set.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

## Methods

### AppendAssemblyVersion(string, Type)

    public VersionHeaderBuilder AppendAssemblyVersion(string name, Type type)

Appends a name/version string, taking the version from the version of the assembly
containing the given type.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` |
| `type` | `https://learn.microsoft.com/dotnet/api/system.type` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.VersionHeaderBuilder` |   |

### AppendDotNetEnvironment()

    public VersionHeaderBuilder AppendDotNetEnvironment()

Appends the .NET environment information to the list.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.VersionHeaderBuilder` |   |

### AppendVersion(string, string)

    public VersionHeaderBuilder AppendVersion(string name, string version)

Appends the given name/version string to the list.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` The name. Must not be null or empty, or contain a space or a slash. |
| `version` | `https://learn.microsoft.com/dotnet/api/system.string` The version. Must not be null, or contain a space or a slash. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.VersionHeaderBuilder` |   |

### Clone()

    public VersionHeaderBuilder Clone()

Clones this VersionHeaderBuilder, creating an independent copy with the same names/values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.VersionHeaderBuilder` | A clone of this builder. |

### ToString()

    public override string ToString()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

**Overrides** [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)