NSMutableOrderedSet<TKey> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| NSMutableOrderedSet<TKey>() |
Initializes a new empty mutable ordered set. |
| NSMutableOrderedSet<TKey>(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| NSMutableOrderedSet<TKey>(NSMutableOrderedSet<TKey>) |
Initializes a new mutable ordered set with the contents of the specified mutable ordered set. |
| NSMutableOrderedSet<TKey>(NSOrderedSet<TKey>) |
Initializes a new mutable ordered set with the contents of the specified ordered set. |
| NSMutableOrderedSet<TKey>(NSSet<TKey>) |
Initializes a new mutable ordered set with the contents of the specified set. |
| NSMutableOrderedSet<TKey>(IntPtr) |
Initializes a new mutable ordered set with the specified initial capacity. |
| NSMutableOrderedSet<TKey>(TKey) |
Initializes a new mutable ordered set containing the specified object. |
| NSMutableOrderedSet<TKey>(TKey[]) |
Initializes a new mutable ordered set with the specified objects. |
NSMutableOrderedSet<TKey>()
Initializes a new empty mutable ordered set.
public NSMutableOrderedSet();
Applies to
NSMutableOrderedSet<TKey>(NSCoder)
A constructor that initializes the object from the data stored in the unarchiver object.
public NSMutableOrderedSet(Foundation.NSCoder coder);
new Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSCoder -> Foundation.NSMutableOrderedSet<'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
NSMutableOrderedSet<TKey>(NSMutableOrderedSet<TKey>)
Initializes a new mutable ordered set with the contents of the specified mutable ordered set.
public NSMutableOrderedSet(Foundation.NSMutableOrderedSet<TKey> other);
new Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> -> Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>
Parameters
The mutable ordered set to copy from.
Applies to
NSMutableOrderedSet<TKey>(NSOrderedSet<TKey>)
Initializes a new mutable ordered set with the contents of the specified ordered set.
public NSMutableOrderedSet(Foundation.NSOrderedSet<TKey> other);
new Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> -> Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>
Parameters
- other
- NSOrderedSet<TKey>
The ordered set to copy from.
Applies to
NSMutableOrderedSet<TKey>(NSSet<TKey>)
Initializes a new mutable ordered set with the contents of the specified set.
public NSMutableOrderedSet(Foundation.NSSet<TKey> source);
new Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> -> Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>
Parameters
- source
- NSSet<TKey>
The source set to copy from.
Applies to
NSMutableOrderedSet<TKey>(IntPtr)
Initializes a new mutable ordered set with the specified initial capacity.
public NSMutableOrderedSet(IntPtr capacity);
new Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : nativeint -> Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>
Parameters
- capacity
-
IntPtr
nativeint
The initial capacity of the set.
Applies to
NSMutableOrderedSet<TKey>(TKey)
Initializes a new mutable ordered set containing the specified object.
public NSMutableOrderedSet(TKey start);
new Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : 'Key -> Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>
Parameters
- start
- TKey
The object to add to the set.
Applies to
NSMutableOrderedSet<TKey>(TKey[])
Initializes a new mutable ordered set with the specified objects.
public NSMutableOrderedSet(params TKey[] objs);
new Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : 'Key[] -> Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>
Parameters
- objs
- TKey[]
An array of objects to add to the set.