SkipValidationAttribute Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Indique qu’une propriété, un paramètre ou un type ne doit pas être validé.
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
- Héritage
- Attributs
Remarques
Lorsqu’elle est appliquée à une propriété, la validation est ignorée pour cette propriété. Lorsqu’elle est appliquée à un paramètre, la validation est ignorée pour ce paramètre. Lorsqu’elle est appliquée à un type, la validation est ignorée pour toutes les propriétés et paramètres de ce type. Cela inclut l’ignorer la validation des propriétés imbriquées pour les types complexes.
Constructeurs
| Nom | Description |
|---|---|
| SkipValidationAttribute() |
Indique qu’une propriété, un paramètre ou un type ne doit pas être validé. |