Compartilhar via


NSMutableDictionary<TKey,TValue> Construtores

Definição

Sobrecargas

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

Um construtor que inicializa o objeto dos dados armazenados no objeto unarchiver.

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 ();

Aplica-se a

NSMutableDictionary<TKey,TValue>(NSCoder)

Um construtor que inicializa o objeto dos dados armazenados no objeto unarchiver.

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)>

Parâmetros

coder
NSCoder

O objeto unarchiver.

Comentários

Esse construtor é fornecido para permitir que a classe seja inicializada de um unarchiver (por exemplo, durante a desserialização nib). Isso faz parte do NSCoding protocolo.

Se os desenvolvedores quiserem criar uma subclasse desse objeto e continuar a dar suporte à desserialização de um arquivo morto, eles deverão implementar um construtor com uma assinatura idêntica: pegar um único parâmetro do tipo NSCoder e decorá-lo com a declaração de atributo [Export("initWithCoder:"].

O estado desse objeto também pode ser serializado usando o método complementar EncodeTo.

Aplica-se a

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)>

Parâmetros

Aplica-se a

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)>

Parâmetros

Aplica-se a

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)>

Parâmetros

key
TKey
value
TValue

Aplica-se a

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)>

Parâmetros

keys
TKey[]
values
TValue[]

Aplica-se a