OptionsMonitor<TOptions>.CurrentValue 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
得到選擇權的現值(等價於 Get(Options.DefaultName))。
public:
property TOptions CurrentValue { TOptions get(); };
public TOptions CurrentValue { get; }
member this.CurrentValue : 'Options
Public ReadOnly Property CurrentValue As TOptions
屬性值
TOptions
實作
例外狀況
驗證所建立實例時,有一個或多個IValidateOptions<TOptions>回傳失敗ValidateOptionsResultTOptions。
沒有 TOptions 公開的無參數建構子,或 TOptions 是 abstract。