NameObjectCollectionBase 생성자

정의

NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

오버로드

NameObjectCollectionBase()

비어 있는 NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

NameObjectCollectionBase(IEqualityComparer)

기본 초기 용량을 갖고 있고 지정된 NameObjectCollectionBase 개체를 사용하는 비어 있는 IEqualityComparer 클래스의 새 인스턴스를 초기화합니다.

NameObjectCollectionBase(Int32)

지정된 초기 용량을 갖고 있고 기본 해시 코드 공급자와 기본 비교자를 사용하는 비어 있는 NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

NameObjectCollectionBase(IHashCodeProvider, IComparer)
사용되지 않습니다.
사용되지 않습니다.

기본 초기 용량을 갖고 있고 지정된 해시 코드 공급자와 지정된 비교자를 사용하는 비어 있는 NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

NameObjectCollectionBase(Int32, IEqualityComparer)

지정된 초기 용량을 갖고 있고 지정된 NameObjectCollectionBase 개체를 사용하는 비어 있는 IEqualityComparer 클래스의 새 인스턴스를 초기화합니다.

NameObjectCollectionBase(SerializationInfo, StreamingContext)

직렬화할 수 있으며 지정된 SerializationInfoStreamingContext를 사용하는 NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

NameObjectCollectionBase(Int32, IHashCodeProvider, IComparer)
사용되지 않습니다.
사용되지 않습니다.

비어 있는 상태이고 지정된 초기 용량을 가지며 지정된 해시 코드 공급자와 지정된 비교자를 사용하는 NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

NameObjectCollectionBase()

비어 있는 NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

protected:
 NameObjectCollectionBase();
protected NameObjectCollectionBase ();
Protected Sub New ()

설명

용량은 NameObjectCollectionBase 보유할 수 있는 NameObjectCollectionBase 요소의 수입니다. 요소가 추가 NameObjectCollectionBase되면 내부 배열을 다시 할당하여 필요에 따라 용량이 자동으로 증가합니다.

컬렉션 크기를 예측할 수 있는 경우 초기 용량을 지정하면 요소를 NameObjectCollectionBase추가하는 동안 여러 크기 조정 작업을 수행할 필요가 없습니다.

해시 코드 공급자는 인스턴스의 키 NameObjectCollectionBase 에 대한 해시 코드를 분배합니다. 기본 해시 코드 공급자는 CaseInsensitiveHashCodeProvider.

비교자는 두 키가 같은지 여부를 결정합니다. 기본 비교자는 .입니다 CaseInsensitiveComparer.

이 생성자는 O(1) 작업입니다.

추가 정보

적용 대상

NameObjectCollectionBase(IEqualityComparer)

기본 초기 용량을 갖고 있고 지정된 NameObjectCollectionBase 개체를 사용하는 비어 있는 IEqualityComparer 클래스의 새 인스턴스를 초기화합니다.

protected:
 NameObjectCollectionBase(System::Collections::IEqualityComparer ^ equalityComparer);
protected NameObjectCollectionBase (System.Collections.IEqualityComparer equalityComparer);
protected NameObjectCollectionBase (System.Collections.IEqualityComparer? equalityComparer);
new System.Collections.Specialized.NameObjectCollectionBase : System.Collections.IEqualityComparer -> System.Collections.Specialized.NameObjectCollectionBase
Protected Sub New (equalityComparer As IEqualityComparer)

매개 변수

equalityComparer
IEqualityComparer

두 키가 같은지 여부를 확인하고 컬렉션의 키에 대한 해시 코드를 생성하는 데 사용할 IEqualityComparer 개체입니다.

설명

개체의 NameObjectCollectionBase 용량은 보유할 수 있는 NameObjectCollectionBase 요소의 수입니다. 요소가 추가 NameObjectCollectionBase되면 내부 배열을 다시 할당하여 필요에 따라 용량이 자동으로 증가합니다.

컬렉션 크기를 예측할 수 있는 경우 초기 용량을 지정하면 요소를 NameObjectCollectionBase추가하는 동안 여러 크기 조정 작업을 수행할 필요가 없습니다.

개체는 IEqualityComparer 비교자와 해시 코드 공급자를 결합합니다. 해시 코드 공급자는 .의 NameObjectCollectionBase키에 대한 해시 코드를 분배합니다. 비교자는 두 키가 같은지 여부를 결정합니다.

이 생성자는 O(1) 작업입니다.

추가 정보

적용 대상

NameObjectCollectionBase(Int32)

지정된 초기 용량을 갖고 있고 기본 해시 코드 공급자와 기본 비교자를 사용하는 비어 있는 NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

protected:
 NameObjectCollectionBase(int capacity);
protected NameObjectCollectionBase (int capacity);
new System.Collections.Specialized.NameObjectCollectionBase : int -> System.Collections.Specialized.NameObjectCollectionBase
Protected Sub New (capacity As Integer)

매개 변수

capacity
Int32

NameObjectCollectionBase 인스턴스가 처음에 포함할 수 있는 대략적인 엔트리 수입니다.

예외

capacity가 0보다 작은 경우

설명

용량은 NameObjectCollectionBase 보유할 수 있는 NameObjectCollectionBase 요소의 수입니다. 요소가 추가 NameObjectCollectionBase되면 내부 배열을 다시 할당하여 필요에 따라 용량이 자동으로 증가합니다.

컬렉션 크기를 예측할 수 있는 경우 초기 용량을 지정하면 요소를 NameObjectCollectionBase추가하는 동안 여러 크기 조정 작업을 수행할 필요가 없습니다.

해시 코드 공급자는 인스턴스의 키 NameObjectCollectionBase 에 대한 해시 코드를 분배합니다. 기본 해시 코드 공급자는 CaseInsensitiveHashCodeProvider.

비교자는 두 키가 같은지 여부를 결정합니다. 기본 비교자는 .입니다 CaseInsensitiveComparer.

이 생성자는 O(n) 연산입니다. 여기서 n 는 다음과 같습니다 capacity.

추가 정보

적용 대상

NameObjectCollectionBase(IHashCodeProvider, IComparer)

주의

Please use NameObjectCollectionBase(IEqualityComparer) instead.

주의

This constructor has been deprecated. Use NameObjectCollectionBase(IEqualityComparer) instead.

기본 초기 용량을 갖고 있고 지정된 해시 코드 공급자와 지정된 비교자를 사용하는 비어 있는 NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

protected:
 NameObjectCollectionBase(System::Collections::IHashCodeProvider ^ hashProvider, System::Collections::IComparer ^ comparer);
[System.Obsolete("Please use NameObjectCollectionBase(IEqualityComparer) instead.")]
protected NameObjectCollectionBase (System.Collections.IHashCodeProvider? hashProvider, System.Collections.IComparer? comparer);
[System.Obsolete("This constructor has been deprecated. Use NameObjectCollectionBase(IEqualityComparer) instead.")]
protected NameObjectCollectionBase (System.Collections.IHashCodeProvider? hashProvider, System.Collections.IComparer? comparer);
[System.Obsolete("Please use NameObjectCollectionBase(IEqualityComparer) instead.")]
protected NameObjectCollectionBase (System.Collections.IHashCodeProvider hashProvider, System.Collections.IComparer comparer);
protected NameObjectCollectionBase (System.Collections.IHashCodeProvider hashProvider, System.Collections.IComparer comparer);
[<System.Obsolete("Please use NameObjectCollectionBase(IEqualityComparer) instead.")>]
new System.Collections.Specialized.NameObjectCollectionBase : System.Collections.IHashCodeProvider * System.Collections.IComparer -> System.Collections.Specialized.NameObjectCollectionBase
[<System.Obsolete("This constructor has been deprecated. Use NameObjectCollectionBase(IEqualityComparer) instead.")>]
new System.Collections.Specialized.NameObjectCollectionBase : System.Collections.IHashCodeProvider * System.Collections.IComparer -> System.Collections.Specialized.NameObjectCollectionBase
new System.Collections.Specialized.NameObjectCollectionBase : System.Collections.IHashCodeProvider * System.Collections.IComparer -> System.Collections.Specialized.NameObjectCollectionBase
Protected Sub New (hashProvider As IHashCodeProvider, comparer As IComparer)

매개 변수

hashProvider
IHashCodeProvider

IHashCodeProvider 인스턴스의 모든 키에 해시 코드를 제공하는 NameObjectCollectionBase입니다.

comparer
IComparer

두 키가 같은지 여부를 확인하는 데 사용하는 IComparer입니다.

특성

설명

용량은 NameObjectCollectionBase 보유할 수 있는 NameObjectCollectionBase 요소의 수입니다. 요소가 추가 NameObjectCollectionBase되면 내부 배열을 다시 할당하여 필요에 따라 용량이 자동으로 증가합니다.

컬렉션 크기를 예측할 수 있는 경우 초기 용량을 지정하면 요소를 NameObjectCollectionBase추가하는 동안 여러 크기 조정 작업을 수행할 필요가 없습니다.

해시 코드 공급자는 인스턴스의 키 NameObjectCollectionBase 에 대한 해시 코드를 분배합니다. 기본 해시 코드 공급자는 CaseInsensitiveHashCodeProvider.

비교자는 두 키가 같은지 여부를 결정합니다. 기본 비교자는 .입니다 CaseInsensitiveComparer.

이 생성자는 O(1) 작업입니다.

추가 정보

적용 대상

NameObjectCollectionBase(Int32, IEqualityComparer)

지정된 초기 용량을 갖고 있고 지정된 NameObjectCollectionBase 개체를 사용하는 비어 있는 IEqualityComparer 클래스의 새 인스턴스를 초기화합니다.

protected:
 NameObjectCollectionBase(int capacity, System::Collections::IEqualityComparer ^ equalityComparer);
protected NameObjectCollectionBase (int capacity, System.Collections.IEqualityComparer equalityComparer);
protected NameObjectCollectionBase (int capacity, System.Collections.IEqualityComparer? equalityComparer);
new System.Collections.Specialized.NameObjectCollectionBase : int * System.Collections.IEqualityComparer -> System.Collections.Specialized.NameObjectCollectionBase
Protected Sub New (capacity As Integer, equalityComparer As IEqualityComparer)

매개 변수

capacity
Int32

NameObjectCollectionBase 개체가 처음에 포함할 수 있는 대략적인 엔트리 수입니다.

equalityComparer
IEqualityComparer

두 키가 같은지 여부를 확인하고 컬렉션의 키에 대한 해시 코드를 생성하는 데 사용할 IEqualityComparer 개체입니다.

예외

capacity가 0보다 작은 경우

설명

개체의 NameObjectCollectionBase 용량은 보유할 수 있는 NameObjectCollectionBase 요소의 수입니다. 요소가 추가 NameObjectCollectionBase되면 내부 배열을 다시 할당하여 필요에 따라 용량이 자동으로 증가합니다.

컬렉션 크기를 예측할 수 있는 경우 초기 용량을 지정하면 요소를 NameObjectCollectionBase추가하는 동안 여러 크기 조정 작업을 수행할 필요가 없습니다.

개체는 IEqualityComparer 비교자와 해시 코드 공급자를 결합합니다. 해시 코드 공급자는 .의 NameObjectCollectionBase키에 대한 해시 코드를 분배합니다. 비교자는 두 키가 같은지 여부를 결정합니다.

이 생성자는 매개 변수가 있는 O(n) 작업입니다capacity.n

추가 정보

적용 대상

NameObjectCollectionBase(SerializationInfo, StreamingContext)

직렬화할 수 있으며 지정된 SerializationInfoStreamingContext를 사용하는 NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

protected:
 NameObjectCollectionBase(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected NameObjectCollectionBase (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Collections.Specialized.NameObjectCollectionBase : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Collections.Specialized.NameObjectCollectionBase
Protected Sub New (info As SerializationInfo, context As StreamingContext)

매개 변수

info
SerializationInfo

SerializationInfo 인스턴스를 serialize하는 데 필요한 정보가 들어 있는 NameObjectCollectionBase 개체입니다.

context
StreamingContext

StreamingContext 인스턴스와 관련되어 있는 serialize된 스트림의 소스 및 대상이 들어 있는 NameObjectCollectionBase 개체입니다.

설명

이 생성자는 O(1) 작업입니다.

추가 정보

적용 대상

NameObjectCollectionBase(Int32, IHashCodeProvider, IComparer)

주의

Please use NameObjectCollectionBase(Int32, IEqualityComparer) instead.

주의

This constructor has been deprecated. Use NameObjectCollectionBase(Int32, IEqualityComparer) instead.

비어 있는 상태이고 지정된 초기 용량을 가지며 지정된 해시 코드 공급자와 지정된 비교자를 사용하는 NameObjectCollectionBase 클래스의 새 인스턴스를 초기화합니다.

protected:
 NameObjectCollectionBase(int capacity, System::Collections::IHashCodeProvider ^ hashProvider, System::Collections::IComparer ^ comparer);
[System.Obsolete("Please use NameObjectCollectionBase(Int32, IEqualityComparer) instead.")]
protected NameObjectCollectionBase (int capacity, System.Collections.IHashCodeProvider? hashProvider, System.Collections.IComparer? comparer);
[System.Obsolete("This constructor has been deprecated. Use NameObjectCollectionBase(Int32, IEqualityComparer) instead.")]
protected NameObjectCollectionBase (int capacity, System.Collections.IHashCodeProvider? hashProvider, System.Collections.IComparer? comparer);
[System.Obsolete("Please use NameObjectCollectionBase(Int32, IEqualityComparer) instead.")]
protected NameObjectCollectionBase (int capacity, System.Collections.IHashCodeProvider hashProvider, System.Collections.IComparer comparer);
protected NameObjectCollectionBase (int capacity, System.Collections.IHashCodeProvider hashProvider, System.Collections.IComparer comparer);
[<System.Obsolete("Please use NameObjectCollectionBase(Int32, IEqualityComparer) instead.")>]
new System.Collections.Specialized.NameObjectCollectionBase : int * System.Collections.IHashCodeProvider * System.Collections.IComparer -> System.Collections.Specialized.NameObjectCollectionBase
[<System.Obsolete("This constructor has been deprecated. Use NameObjectCollectionBase(Int32, IEqualityComparer) instead.")>]
new System.Collections.Specialized.NameObjectCollectionBase : int * System.Collections.IHashCodeProvider * System.Collections.IComparer -> System.Collections.Specialized.NameObjectCollectionBase
new System.Collections.Specialized.NameObjectCollectionBase : int * System.Collections.IHashCodeProvider * System.Collections.IComparer -> System.Collections.Specialized.NameObjectCollectionBase
Protected Sub New (capacity As Integer, hashProvider As IHashCodeProvider, comparer As IComparer)

매개 변수

capacity
Int32

NameObjectCollectionBase 인스턴스가 처음에 포함할 수 있는 대략적인 엔트리 수입니다.

hashProvider
IHashCodeProvider

IHashCodeProvider 인스턴스의 모든 키에 해시 코드를 제공하는 NameObjectCollectionBase입니다.

comparer
IComparer

두 키가 같은지 여부를 확인하는 데 사용하는 IComparer입니다.

특성

예외

capacity가 0보다 작은 경우

설명

용량은 NameObjectCollectionBase 보유할 수 있는 NameObjectCollectionBase 요소의 수입니다. 요소가 추가 NameObjectCollectionBase되면 내부 배열을 다시 할당하여 필요에 따라 용량이 자동으로 증가합니다.

컬렉션 크기를 예측할 수 있는 경우 초기 용량을 지정하면 요소를 NameObjectCollectionBase추가하는 동안 여러 크기 조정 작업을 수행할 필요가 없습니다.

해시 코드 공급자는 인스턴스의 키 NameObjectCollectionBase 에 대한 해시 코드를 분배합니다. 기본 해시 코드 공급자는 CaseInsensitiveHashCodeProvider.

비교자는 두 키가 같은지 여부를 결정합니다. 기본 비교자는 .입니다 CaseInsensitiveComparer.

이 생성자는 O(n) 연산입니다. 여기서 n 는 다음과 같습니다 capacity.

추가 정보

적용 대상