2.6.0 (latest) 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Google Cloud Audit API class ViolationInfo.

Provides information about the Policy violation info for this request.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ViolationInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.ViolationInfo.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ViolationInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.ViolationInfo.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ViolationInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.ViolationInfo.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.Audit](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.md.txt)

## Assembly

Google.Cloud.Audit.dll

## Constructors

### ViolationInfo()

    public ViolationInfo()

### ViolationInfo(ViolationInfo)

    public ViolationInfo(ViolationInfo other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ViolationInfo` |

## Properties

### CheckedValue

    public string CheckedValue { get; set; }

Optional. Value that is being checked for the policy.
This could be in encrypted form (if pii sensitive).
This field will only be emitted in LIST_POLICY types

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Constraint

    public string Constraint { get; set; }

Optional. Constraint name

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ErrorMessage

    public string ErrorMessage { get; set; }

Optional. Error message that policy is indicating.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PolicyType

    public ViolationInfo.Types.PolicyType PolicyType { get; set; }

Optional. Indicates the type of the policy.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ViolationInfoTypesPolicyType` |   |