Modifica

Condividi tramite


NSMutableSet<TKey> Constructors

Definition

Overloads

NSMutableSet<TKey>()
NSMutableSet<TKey>(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

NSMutableSet<TKey>(NSMutableSet<TKey>)
NSMutableSet<TKey>(NSSet<TKey>)
NSMutableSet<TKey>(nint)
NSMutableSet<TKey>(TKey[])

NSMutableSet<TKey>()

public NSMutableSet ();

Applies to

NSMutableSet<TKey>(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

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

Parameters

coder
NSCoder

The unarchiver object.

Remarks

This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the NSCoding protocol.

If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type NSCoder and decorate it with the [Export("initWithCoder:"] attribute declaration.

The state of this object can also be serialized by using the companion method, EncodeTo.

Applies to

NSMutableSet<TKey>(NSMutableSet<TKey>)

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

Parameters

Applies to

NSMutableSet<TKey>(NSSet<TKey>)

public NSMutableSet (Foundation.NSSet<TKey> other);
new Foundation.NSMutableSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> -> Foundation.NSMutableSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>

Parameters

other
NSSet<TKey>

Applies to

NSMutableSet<TKey>(nint)

public NSMutableSet (nint capacity);
new Foundation.NSMutableSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : nint -> Foundation.NSMutableSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>

Parameters

capacity
System.System.IntPtr System.nativeint

Applies to

NSMutableSet<TKey>(TKey[])

public NSMutableSet (params TKey[] objs);
new Foundation.NSMutableSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : 'Key[] -> Foundation.NSMutableSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>

Parameters

objs
TKey[]

Applies to