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

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

Reference documentation and code samples for the Web Security Scanner v1 API class ViolatingResource.

Information regarding any resource causing the vulnerability such
as JavaScript sources, image, audio files, etc.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ViolatingResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.ViolatingResource.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ViolatingResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.ViolatingResource.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ViolatingResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.ViolatingResource.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.WebSecurityScanner.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.md.txt)

## Assembly

Google.Cloud.WebSecurityScanner.V1.dll

## Constructors

### ViolatingResource()

    public ViolatingResource()

### ViolatingResource(ViolatingResource)

    public ViolatingResource(ViolatingResource other)

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

## Properties

### ContentType

    public string ContentType { get; set; }

The MIME type of this resource.

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

### ResourceUrl

    public string ResourceUrl { get; set; }

URL of this violating resource.

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