DocumentOptionSet Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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>, String) |
Gets the value of the option, or the default value if not otherwise set. (Inherited from OptionSet) |
GetOption<T>(PerLanguageOption<T>) | |
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. |