Freigeben über


NSMutableDictionary<TKey,TValue> Konstruktoren

Definition

Überlädt

NSMutableDictionary<TKey,TValue>()
NSMutableDictionary<TKey,TValue>(NSCoder)

Ein Konstruktor, der das -Objekt aus den im Unarchiver-Objekt gespeicherten Daten initialisiert.

NSMutableDictionary<TKey,TValue>(NSDictionary<TKey,TValue>)
NSMutableDictionary<TKey,TValue>(NSMutableDictionary<TKey,TValue>)
NSMutableDictionary<TKey,TValue>(TKey, TValue)
NSMutableDictionary<TKey,TValue>(TKey[], TValue[])

NSMutableDictionary<TKey,TValue>()

public NSMutableDictionary ();

Gilt für:

NSMutableDictionary<TKey,TValue>(NSCoder)

Ein Konstruktor, der das -Objekt aus den im Unarchiver-Objekt gespeicherten Daten initialisiert.

public NSMutableDictionary (Foundation.NSCoder coder);
new Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : Foundation.NSCoder -> Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameter

coder
NSCoder

Das Unarchiver-Objekt.

Hinweise

Dieser Konstruktor wird bereitgestellt, um die Initialisierung der Klasse von einem Unarchiver (z. B. während der NIB-Deserialisierung) zu ermöglichen. Dies ist Teil des NSCoding Protokolls.

Wenn Entwickler eine Unterklasse dieses Objekts erstellen und weiterhin die Deserialisierung aus einem Archiv unterstützen möchten, sollten sie einen Konstruktor mit einer identischen Signatur implementieren: Indem sie einen einzelnen Parameter vom Typ NSCoder verwenden und ihn mit der [Export("initWithCoder:"]-Attributdeklaration versehen.

Der Zustand dieses Objekts kann auch mithilfe der Begleitmethode EncodeTo serialisiert werden.

Gilt für:

NSMutableDictionary<TKey,TValue>(NSDictionary<TKey,TValue>)

public NSMutableDictionary (Foundation.NSDictionary<TKey,TValue> other);
new Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : Foundation.NSDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> -> Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameter

Gilt für:

NSMutableDictionary<TKey,TValue>(NSMutableDictionary<TKey,TValue>)

public NSMutableDictionary (Foundation.NSMutableDictionary<TKey,TValue> other);
new Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> -> Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameter

Gilt für:

NSMutableDictionary<TKey,TValue>(TKey, TValue)

public NSMutableDictionary (TKey key, TValue value);
new Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : 'Key * 'Value -> Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameter

key
TKey
value
TValue

Gilt für:

NSMutableDictionary<TKey,TValue>(TKey[], TValue[])

public NSMutableDictionary (TKey[] keys, TValue[] values);
new Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)> : 'Key[] * 'Value[] -> Foundation.NSMutableDictionary<'Key, 'Value (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject and 'Value : null and 'Value :> ObjCRuntime.INativeObject)>

Parameter

keys
TKey[]
values
TValue[]

Gilt für: