共用方式為


DocumentOptionSet 類別

定義

OptionSet,來自 GetOptionsAsync(CancellationToken) 。 其行為就像一般 OptionSet ,但會記住哪一種語言 Document ,因此您不需要在呼叫 GetOption<T>(PerLanguageOption<T>) 時以備援方式傳遞該資訊。

public ref class DocumentOptionSet sealed : Microsoft::CodeAnalysis::Options::OptionSet
public sealed class DocumentOptionSet : Microsoft.CodeAnalysis.Options.OptionSet
type DocumentOptionSet = class
    inherit OptionSet
Public NotInheritable Class DocumentOptionSet
Inherits OptionSet
繼承
DocumentOptionSet

方法

GetOption(OptionKey)

OptionSet,來自 GetOptionsAsync(CancellationToken) 。 其行為就像一般 OptionSet ,但會記住哪一種語言 Document ,因此您不需要在呼叫 GetOption<T>(PerLanguageOption<T>) 時以備援方式傳遞該資訊。

GetOption(OptionKey)

取得選項的值,如果未設定,則為預設值。

(繼承來源 OptionSet)
GetOption<T>(Option<T>)

取得選項的值,如果未設定,則為預設值。

(繼承來源 OptionSet)
GetOption<T>(OptionKey)

取得選項的值,如果未設定,則為預設值。

(繼承來源 OptionSet)
GetOption<T>(PerLanguageOption<T>)

OptionSet,來自 GetOptionsAsync(CancellationToken) 。 其行為就像一般 OptionSet ,但會記住哪一種語言 Document ,因此您不需要在呼叫 GetOption<T>(PerLanguageOption<T>) 時以備援方式傳遞該資訊。

GetOption<T>(PerLanguageOption<T>, String)

取得選項的值,如果未設定,則為預設值。

(繼承來源 OptionSet)
WithChangedOption(OptionKey, Object)

OptionSet,來自 GetOptionsAsync(CancellationToken) 。 其行為就像一般 OptionSet ,但會記住哪一種語言 Document ,因此您不需要在呼叫 GetOption<T>(PerLanguageOption<T>) 時以備援方式傳遞該資訊。

WithChangedOption(OptionKey, Object)

建立新的 OptionSet ,其中包含已變更的值。

(繼承來源 OptionSet)
WithChangedOption<T>(Option<T>, T)

建立新的 OptionSet ,其中包含已變更的值。

(繼承來源 OptionSet)
WithChangedOption<T>(PerLanguageOption<T>, String, T)

建立新的 OptionSet ,其中包含已變更的值。

(繼承來源 OptionSet)
WithChangedOption<T>(PerLanguageOption<T>, T)

建立新的 DocumentOptionSet ,其中包含已變更的值。

適用於