Share via


SkipValidationAttribute Class

Definition

Indicates that a property, parameter, or a type should not be validated. When applied to a property, validation is skipped for that property. When applied to a parameter, validation is skipped for that parameter. When applied to a type, validation is skipped for all properties and parameters of that type. This includes skipping validation of nested properties for complex types.

public ref class SkipValidationAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
[System.Diagnostics.CodeAnalysis.Experimental("ASP0029", UrlFormat="https://aka.ms/aspnet/analyzer/{0}")]
public sealed class SkipValidationAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
[<System.Diagnostics.CodeAnalysis.Experimental("ASP0029", UrlFormat="https://aka.ms/aspnet/analyzer/{0}")>]
type SkipValidationAttribute = class
    inherit Attribute
Public NotInheritable Class SkipValidationAttribute
Inherits Attribute
Inheritance
SkipValidationAttribute
Attributes

Applies to