Sdílet prostřednictvím


SettingsStore.GetString Metoda

Definice

Přetížení

GetString(String, String, String)

Vrátí hodnotu požadované vlastnosti, jejíž datový typ je String.

GetString(String, String)

Vrátí hodnotu požadované vlastnosti, jejíž datový typ je String.

GetString(String, String, String)

Vrátí hodnotu požadované vlastnosti, jejíž datový typ je 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

Parametry

collectionPath
String

Cesta kolekce vlastnosti.

propertyName
String

Název vlastnosti.

defaultValue
String

Hodnota, která má být vrácena, pokud vlastnost neexistuje.

Návraty

Pokud vlastnost neexistuje, vrátí hodnotu defaultValue předanou.

Výjimky

Vyvolá tuto výjimku, pokud je vlastnost jiného typu.

Platí pro

GetString(String, String)

Vrátí hodnotu požadované vlastnosti, jejíž datový typ je 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

Parametry

collectionPath
String

Cesta kolekce vlastnosti.

propertyName
String

Název vlastnosti.

Návraty

Hodnota vlastnosti

Výjimky

Vyvolá tuto výjimku, pokud je vlastnost jiného typu nebo pokud neexistuje.

Platí pro