Bewerken

Delen via


NSOrderedSet<TKey> Constructors

Definition

Overloads

NSOrderedSet<TKey>()
NSOrderedSet<TKey>(NSCoder)

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

NSOrderedSet<TKey>(NSMutableOrderedSet<TKey>)
NSOrderedSet<TKey>(NSOrderedSet<TKey>)
NSOrderedSet<TKey>(NSSet<TKey>)
NSOrderedSet<TKey>(TKey)
NSOrderedSet<TKey>(TKey[])

NSOrderedSet<TKey>()

public NSOrderedSet ();

Applies to

NSOrderedSet<TKey>(NSCoder)

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

public NSOrderedSet (Foundation.NSCoder coder);
new Foundation.NSOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSCoder -> Foundation.NSOrderedSet<'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

NSOrderedSet<TKey>(NSMutableOrderedSet<TKey>)

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

Parameters

Applies to

NSOrderedSet<TKey>(NSOrderedSet<TKey>)

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

Parameters

Applies to

NSOrderedSet<TKey>(NSSet<TKey>)

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

Parameters

source
NSSet<TKey>

Applies to

NSOrderedSet<TKey>(TKey)

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

Parameters

start
TKey

Applies to

NSOrderedSet<TKey>(TKey[])

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

Parameters

objs
TKey[]

Applies to