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>) | |
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för