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 還原序列化) 期間,從 unarchiver (初始化 類別。 這是通訊協定的 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[]