# Google Cloud OS Config v1 API - Class WindowsUpdateSettings (2.6.0)

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

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.5.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [1.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.WindowsUpdateSettings)

    public sealed class WindowsUpdateSettings : IMessage<WindowsUpdateSettings>, IEquatable<WindowsUpdateSettings>, IDeepCloneable<WindowsUpdateSettings>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud OS Config v1 API class WindowsUpdateSettings.

Windows patching is performed using the Windows Update Agent.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[WindowsUpdateSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WindowsUpdateSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[WindowsUpdateSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WindowsUpdateSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[WindowsUpdateSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WindowsUpdateSettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.OsConfig.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1)

## Assembly

Google.Cloud.OsConfig.V1.dll

## Constructors

### WindowsUpdateSettings()

    public WindowsUpdateSettings()

### WindowsUpdateSettings(WindowsUpdateSettings)

    public WindowsUpdateSettings(WindowsUpdateSettings other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WindowsUpdateSettings` |

## Properties

### Classifications

    public RepeatedField<WindowsUpdateSettings.Types.Classification> Classifications { get; }

Only apply updates of these windows update classifications. If empty, all
updates are applied.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WindowsUpdateSettingshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WindowsUpdateSettings.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.WindowsUpdateSettings.Types.Classification` |   |

### Excludes

    public RepeatedField<string> Excludes { get; }

List of KBs to exclude from update.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### ExclusivePatches

    public RepeatedField<string> ExclusivePatches { get; }

An exclusive list of kbs to be updated. These are the only patches
that will be updated. This field must not be used with other
patch configurations.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |