OptionsMonitor<TOptions>.CurrentValue 属性

定义

获取选项的当前值(等效于 Get(Options.DefaultName))。

public:
 property TOptions CurrentValue { TOptions get(); };
public TOptions CurrentValue { get; }
member this.CurrentValue : 'Options
Public ReadOnly Property CurrentValue As TOptions

属性值

TOptions

实现

例外

验证TOptions创建的实例时,一个或多个IValidateOptions<TOptions>返回失败ValidateOptionsResult

没有 TOptions 公共无参数构造函数或 TOptionsabstract.

适用于