OptionsContextAttribute 类

定义

为批注类型生成 IOptionsContext 的实现。

public ref class OptionsContextAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)]
[System.Diagnostics.Conditional("CODE_GENERATION_ATTRIBUTES")]
public sealed class OptionsContextAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)>]
[<System.Diagnostics.Conditional("CODE_GENERATION_ATTRIBUTES")>]
type OptionsContextAttribute = class
    inherit Attribute
Public NotInheritable Class OptionsContextAttribute
Inherits Attribute
继承
OptionsContextAttribute
属性

构造函数

名称 说明
OptionsContextAttribute()

为批注类型生成 IOptionsContext 的实现。

适用于