SettingsStore.GetString Método

Definição

Sobrecargas

GetString(String, String)

Retorna o valor da propriedade solicitada cujo tipo de dados é SettingsType.String .

GetString(String, String, String)

Retorna o valor da propriedade solicitada cujo tipo de dados é SettingsType.String .

GetString(String, String)

Retorna o valor da propriedade solicitada cujo tipo de dados é SettingsType.String .

public:
 abstract System::String ^ GetString(System::String ^ collectionPath, System::String ^ propertyName);
public:
 abstract Platform::String ^ GetString(Platform::String ^ collectionPath, Platform::String ^ propertyName);
 abstract std::wstring GetString(std::wstring const & collectionPath, std::wstring const & propertyName);
public abstract string GetString (string collectionPath, string propertyName);
abstract member GetString : string * string -> string
Public MustOverride Function GetString (collectionPath As String, propertyName As String) As String

Parâmetros

collectionPath
String

Caminho da coleção da propriedade.

propertyName
String

Nome da propriedade.

Retornos

String

Valor da propriedade.

Exceções

Gera essa exceção se a propriedade for de um tipo diferente ou se ela não existir.

Aplica-se a

GetString(String, String, String)

Retorna o valor da propriedade solicitada cujo tipo de dados é SettingsType.String .

public:
 abstract System::String ^ GetString(System::String ^ collectionPath, System::String ^ propertyName, System::String ^ defaultValue);
public:
 abstract Platform::String ^ GetString(Platform::String ^ collectionPath, Platform::String ^ propertyName, Platform::String ^ defaultValue);
 abstract std::wstring GetString(std::wstring const & collectionPath, std::wstring const & propertyName, std::wstring const & defaultValue);
public abstract string GetString (string collectionPath, string propertyName, string defaultValue);
abstract member GetString : string * string * string -> string
Public MustOverride Function GetString (collectionPath As String, propertyName As String, defaultValue As String) As String

Parâmetros

collectionPath
String

Caminho da coleção da propriedade.

propertyName
String

Nome da propriedade.

defaultValue
String

Valor a ser retornado se a propriedade não existir.

Retornos

String

Se a propriedade não existir, ela retornará o defaultValue passado.

Exceções

Gera essa exceção se a propriedade for de um tipo diferente.

Aplica-se a