OptionsContextAttribute Class

Definition

Generates an implementation of IOptionsContext for the annotated type.

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)]
[System.Diagnostics.Conditional("CODE_GENERATION_ATTRIBUTES")]
public sealed class OptionsContextAttribute : Attribute
Inheritance
OptionsContextAttribute
Attributes

Constructors

Applies to

Produkt Versioner
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)