NSMutableOrderedSet<TKey> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
NSMutableOrderedSet<TKey>()
public NSMutableOrderedSet();
适用于
NSMutableOrderedSet<TKey>(NSCoder)
从 unarchiver 对象中存储的数据初始化 对象的构造函数。
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)>
参数
- coder
- NSCoder
unarchiver 对象。
注解
提供此构造函数是为了允许从非架构 (初始化类,例如,在 NIB 反序列化) 期间。 这是协议的一 NSCoding 部分。
如果开发人员想要创建此对象的子类并继续支持从存档反序列化,则应实现具有相同签名的构造函数:采用类型的 NSCoder 单个参数,并使用 [Export (“initWithCoder:”] 属性声明修饰它。
也可以使用配套方法 EncodeTo 对此对象的状态进行序列化。
适用于
NSMutableOrderedSet<TKey>(NSMutableOrderedSet<TKey>)
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)>
参数
适用于
NSMutableOrderedSet<TKey>(NSOrderedSet<TKey>)
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)>
参数
- other
- NSOrderedSet<TKey>
适用于
NSMutableOrderedSet<TKey>(NSSet<TKey>)
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)>
参数
- source
- NSSet<TKey>
适用于
NSMutableOrderedSet<TKey>(nint)
public NSMutableOrderedSet(nint capacity);
new Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : nint -> Foundation.NSMutableOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>
参数
- capacity
- System.System.IntPtr System.nativeint
适用于
NSMutableOrderedSet<TKey>(TKey)
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)>
参数
- start
- TKey
适用于
NSMutableOrderedSet<TKey>(TKey[])
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)>
参数
- objs
- TKey[]