PropertySet.Insert(String, Object) Metodo

Definizione

Aggiunge un elemento al set di proprietà.

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

Parametri

key
String

Platform::String

winrt::hstring

Chiave da inserire.

value
Object

Platform::Object

IInspectable

Valore da inserire.

Restituisce

Boolean

bool

True se il metodo sostituisce un valore già esistente per la chiave; false se si tratta di una nuova chiave.

Implementazioni

Si applica a