SkipValidationAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示不应验证属性、参数或类型。
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() |
指示不应验证属性、参数或类型。 |