Прочетете на английски

Споделяне чрез


OptionsValidatorAttribute Class

Definition

Triggers the automatic generation of the implementation of IValidateOptions<TOptions> at compile time.

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)]
public sealed class OptionsValidatorAttribute : Attribute
Inheritance
OptionsValidatorAttribute
Attributes

Constructors

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)