| File: SkipValidationAttribute.cs | Web Access |
| Project: src\aspnetcore\src\Validation\src\Microsoft.Extensions.Validation.csproj (Microsoft.Extensions.Validation) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Validation; /// <summary> /// Indicates that a property, parameter, or type should not be validated. /// </summary> /// <remarks> /// When applied to a property, validation is skipped for that property. /// When applied to a parameter, validation is skipped for that parameter. /// When applied to a type, validation is skipped for all properties and parameters of that type. /// This includes skipping validation of nested properties for complex types. /// </remarks> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)] public sealed class SkipValidationAttribute : Attribute { }