Share via


PropertySet.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。

実装

適用対象