ApplicationDataCompositeValue.Insert(String, Object) メソッド

定義

アプリケーション設定を作成または置き換えます。

public:
 virtual bool Insert(Platform::String ^ key, Platform::Object ^ value) = IMap<Platform::String ^, Platform::Object ^>::Insert;
bool Insert(winrt::hstring const& key, IInspectable const& value);
public bool Insert(string key, object value);
function insert(key, value)
Public Function Insert (key As String, value As Object) As Boolean

パラメーター

key
String

Platform::String

winrt::hstring

挿入または置換する設定のキー。

value
Object

Platform::Object

IInspectable

設定値です。

戻り値

Boolean

bool

True を指定したキーを持つ項目が既存の項目であり、置き換えられました。それ以外の場合は false。

実装

適用対象