NSOrderedSet<TKey> Конструкторы

Определение

Перегрузки

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

Конструктор, который инициализирует объект из данных, хранящихся в объекте unarchiver.

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

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). Это часть 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)>

Параметры

Применяется к

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[]

Применяется к