NameObjectCollectionBase 생성자

정의

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

오버로드

Name Description
NameObjectCollectionBase()

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

NameObjectCollectionBase(IEqualityComparer)

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

NameObjectCollectionBase(Int32)

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

NameObjectCollectionBase(IHashCodeProvider, IComparer)
사용되지 않음.
사용되지 않음.

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

NameObjectCollectionBase(Int32, IEqualityComparer)

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

NameObjectCollectionBase(SerializationInfo, StreamingContext)
사용되지 않음.

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

NameObjectCollectionBase(Int32, IHashCodeProvider, IComparer)
사용되지 않음.
사용되지 않음.

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

NameObjectCollectionBase()

Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs

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

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

설명

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

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

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

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

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

추가 정보

적용 대상

NameObjectCollectionBase(IEqualityComparer)

Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs

비어 있고 기본 초기 용량을 가지며 지정된 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)

Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs

비어 있고, 지정된 초기 용량을 가지며, 기본 해시 코드 공급자와 기본 비교자를 사용하는 클래스의 새 인스턴스 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)

Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs

주의

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

주의

Please use NameObjectCollectionBase(IEqualityComparer) instead.

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

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);
[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("This constructor has been deprecated. Use NameObjectCollectionBase(IEqualityComparer) instead.")>]
new System.Collections.Specialized.NameObjectCollectionBase : System.Collections.IHashCodeProvider * System.Collections.IComparer -> System.Collections.Specialized.NameObjectCollectionBase
[<System.Obsolete("Please 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)

Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs

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

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) 작업입니다n.capacity

추가 정보

적용 대상

NameObjectCollectionBase(SerializationInfo, StreamingContext)

Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs

주의

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

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

protected:
 NameObjectCollectionBase(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected NameObjectCollectionBase(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected NameObjectCollectionBase(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Collections.Specialized.NameObjectCollectionBase : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Collections.Specialized.NameObjectCollectionBase
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

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

context
StreamingContext

StreamingContextNameObjectCollectionBase 인스턴스와 연결된 직렬화된 스트림의 원본 및 대상을 포함하는 개체입니다.

특성

설명

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

추가 정보

적용 대상

NameObjectCollectionBase(Int32, IHashCodeProvider, IComparer)

Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs
Source:
NameObjectCollectionBase.cs

주의

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

주의

Please use NameObjectCollectionBase(Int32, IEqualityComparer) instead.

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

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);
[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("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
[<System.Obsolete("Please 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.

추가 정보

적용 대상