PropertySettingsHelper.GetValue Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
| GetValue<T>(IPropertySettings, String) |
Obter valor do tipo (T) |
| GetValue<T>(IPropertySettings, String, T) |
Obter valor do tipo (T) |
GetValue<T>(IPropertySettings, String)
Obter valor do tipo (T)
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetValue(Microsoft::VisualStudio::Workspace::IPropertySettings ^ settings, System::String ^ key);
public static T GetValue<T> (this Microsoft.VisualStudio.Workspace.IPropertySettings settings, string key);
static member GetValue : Microsoft.VisualStudio.Workspace.IPropertySettings * string -> 'T
<Extension()>
Public Function GetValue(Of T) (settings As IPropertySettings, key As String) As T
Parâmetros de tipo
- T
Tipo desejado esperado
Parâmetros
- settings
- IPropertySettings
A instância de configurações de entrada
- key
- String
Chave a ser procurada na configuração
Retornos
- T
O valor contido nas configurações
Aplica-se a
GetValue<T>(IPropertySettings, String, T)
Obter valor do tipo (T)
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetValue(Microsoft::VisualStudio::Workspace::IPropertySettings ^ settings, System::String ^ key, T defaultValue);
public static T GetValue<T> (this Microsoft.VisualStudio.Workspace.IPropertySettings settings, string key, T defaultValue);
static member GetValue : Microsoft.VisualStudio.Workspace.IPropertySettings * string * 'T -> 'T
<Extension()>
Public Function GetValue(Of T) (settings As IPropertySettings, key As String, defaultValue As T) As T
Parâmetros de tipo
- T
Tipo desejado esperado
Parâmetros
- settings
- IPropertySettings
A instância de configuração
- key
- String
Chave a ser procurada na configuração
- defaultValue
- T
Valor padrão a ser fornecido se nenhum valor for encontrado
Retornos
- T
O valor contido na configuração ou o valor padrão que está sendo passado