NSOrderedSet<TKey> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
NSOrderedSet<TKey>()
public NSOrderedSet ();
適用於
NSOrderedSet<TKey>(NSCoder)
從儲存在 unarchiver 物件中的資料初始化 物件的建構函式。
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)>
參數
- coder
- NSCoder
unarchiver 物件。
備註
提供這個建構函式,以允許在 NIB 還原序列化) 期間,從 unarchiver (初始化 類別。 這是通訊協定的 NSCoding 一部分。
如果開發人員想要建立這個物件的子類別,並繼續支援從封存還原序列化,他們應該實作具有相同簽章的建構函式:採用類型的 NSCoder 單一參數,並使用 [Export (「initWithCoder:」] 屬性宣告加以裝飾。
您也可以使用隨附方法 EncodeTo 序列化這個物件的狀態。
適用於
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)>
參數
適用於
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)>
參數
- other
- NSOrderedSet<TKey>
適用於
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)>
參數
- source
- NSSet<TKey>
適用於
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)>
參數
- start
- TKey
適用於
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)>
參數
- objs
- TKey[]