通过


SkipValidationAttribute 类

定义

指示不应验证属性、参数或类型。

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
继承
SkipValidationAttribute
属性

注解

应用于属性时,将跳过该属性的验证。 应用于参数时,将跳过该参数的验证。 应用于类型时,将跳过该类型的所有属性和参数的验证。 这包括跳过对复杂类型的嵌套属性的验证。

构造函数

名称 说明
SkipValidationAttribute()

指示不应验证属性、参数或类型。

适用于