共用方式為


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
屬性

備註

當應用於屬性時,該屬性的驗證會被跳過。 當應用於參數時,該參數的驗證會被跳過。 當應用於某個型別時,該型別的所有屬性與參數都會被跳過驗證。 這包括跳過複雜型別巢狀屬性的驗證。

建構函式

名稱 Description
SkipValidationAttribute()

表示某屬性、參數或型別不應被驗證。

適用於