DocumentOptionSet Class

Definition

An OptionSet that comes from GetOptionsAsync(CancellationToken). It behaves just like a normal OptionSet but remembers which language the Document is, so you don't have to pass that information redundantly when calling 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
Inheritance
DocumentOptionSet

Methods

GetOption(OptionKey)
GetOption(OptionKey)

Gets the value of the option, or the default value if not otherwise set.

(Inherited from OptionSet)
GetOption<T>(Option<T>)

Gets the value of the option, or the default value if not otherwise set.

(Inherited from OptionSet)
GetOption<T>(OptionKey)

Gets the value of the option, or the default value if not otherwise set.

(Inherited from OptionSet)
GetOption<T>(PerLanguageOption<T>)
GetOption<T>(PerLanguageOption<T>, String)

Gets the value of the option, or the default value if not otherwise set.

(Inherited from OptionSet)
WithChangedOption(OptionKey, Object)
WithChangedOption(OptionKey, Object)

Creates a new OptionSet that contains the changed value.

(Inherited from OptionSet)
WithChangedOption<T>(Option<T>, T)

Creates a new OptionSet that contains the changed value.

(Inherited from OptionSet)
WithChangedOption<T>(PerLanguageOption<T>, String, T)

Creates a new OptionSet that contains the changed value.

(Inherited from OptionSet)
WithChangedOption<T>(PerLanguageOption<T>, T)

Creates a new DocumentOptionSet that contains the changed value.

Applies to