SettingsStore.GetString メソッド

定義

オーバーロード

GetString(String, String, String)

データ型 Stringが である要求されたプロパティの値を返します。

GetString(String, String)

データ型 Stringが である要求されたプロパティの値を返します。

GetString(String, String, String)

データ型 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

パラメーター

collectionPath
String

プロパティのコレクションのパス。

propertyName
String

プロパティ名。

defaultValue
String

プロパティが存在しない場合に返される値。

戻り値

プロパティが存在しない場合は、渡された defaultValue を返します。

例外

プロパティの型が異なる場合は、この例外をスローします。

適用対象

GetString(String, String)

データ型 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

パラメーター

collectionPath
String

プロパティのコレクションのパス。

propertyName
String

プロパティ名。

戻り値

プロパティの値。

例外

プロパティの型が異なる場合、または存在しない場合は、この例外をスローします。

適用対象