OptionSet.GetOption 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetOption(OptionKey) |
获取 选项的值,如果未进行其他设置,则获取默认值。 |
GetOption<T>(Option<T>) |
获取 选项的值,如果未进行其他设置,则获取默认值。 |
GetOption<T>(OptionKey) |
获取 选项的值,如果未进行其他设置,则获取默认值。 |
GetOption<T>(PerLanguageOption<T>, String) |
获取 选项的值,如果未进行其他设置,则获取默认值。 |
GetOption(OptionKey)
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
获取 选项的值,如果未进行其他设置,则获取默认值。
public:
abstract System::Object ^ GetOption(Microsoft::CodeAnalysis::Options::OptionKey optionKey);
public abstract object GetOption (Microsoft.CodeAnalysis.Options.OptionKey optionKey);
public object? GetOption (Microsoft.CodeAnalysis.Options.OptionKey optionKey);
public abstract object? GetOption (Microsoft.CodeAnalysis.Options.OptionKey optionKey);
abstract member GetOption : Microsoft.CodeAnalysis.Options.OptionKey -> obj
member this.GetOption : Microsoft.CodeAnalysis.Options.OptionKey -> obj
Public MustOverride Function GetOption (optionKey As OptionKey) As Object
Public Function GetOption (optionKey As OptionKey) As Object
参数
- optionKey
- OptionKey
返回
适用于
GetOption<T>(Option<T>)
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
获取 选项的值,如果未进行其他设置,则获取默认值。
public:
generic <typename T>
T GetOption(Microsoft::CodeAnalysis::Options::Option<T> ^ option);
public T GetOption<T> (Microsoft.CodeAnalysis.Options.Option<T> option);
member this.GetOption : Microsoft.CodeAnalysis.Options.Option<'T> -> 'T
Public Function GetOption(Of T) (option As Option(Of T)) As T
类型参数
- T
参数
- option
- Option<T>
返回
T
适用于
GetOption<T>(OptionKey)
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
获取 选项的值,如果未进行其他设置,则获取默认值。
public T GetOption<T> (Microsoft.CodeAnalysis.Options.OptionKey optionKey);
member this.GetOption : Microsoft.CodeAnalysis.Options.OptionKey -> 'T
Public Function GetOption(Of T) (optionKey As OptionKey) As T
类型参数
- T
参数
- optionKey
- OptionKey
返回
T
适用于
GetOption<T>(PerLanguageOption<T>, String)
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
- Source:
- OptionSet.cs
获取 选项的值,如果未进行其他设置,则获取默认值。
public:
generic <typename T>
T GetOption(Microsoft::CodeAnalysis::Options::PerLanguageOption<T> ^ option, System::String ^ language);
public T GetOption<T> (Microsoft.CodeAnalysis.Options.PerLanguageOption<T> option, string language);
public T GetOption<T> (Microsoft.CodeAnalysis.Options.PerLanguageOption<T> option, string? language);
member this.GetOption : Microsoft.CodeAnalysis.Options.PerLanguageOption<'T> * string -> 'T
Public Function GetOption(Of T) (option As PerLanguageOption(Of T), language As String) As T
类型参数
- T
参数
- option
- PerLanguageOption<T>
- language
- String
返回
T