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
- 繼承
- 屬性
備註
當應用於屬性時,該屬性的驗證會被跳過。 當應用於參數時,該參數的驗證會被跳過。 當應用於某個型別時,該型別的所有屬性與參數都會被跳過驗證。 這包括跳過複雜型別巢狀屬性的驗證。
建構函式
| 名稱 | Description |
|---|---|
| SkipValidationAttribute() |
表示某屬性、參數或型別不應被驗證。 |