OrderedCollectionBase<T> 클래스
Represents a metadata object collection that preserves item ordering.
상속 계층
System.Object
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.OrderedCollectionBase<T>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.OrderedCollection<T>
네임스페이스: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
어셈블리: Microsoft.SqlServer.Management.SqlParser(Microsoft.SqlServer.Management.SqlParser.dll)
구문
‘선언
Public MustInherit Class OrderedCollectionBase(Of T As {Class, IMetadataObject}) _
Implements IMutableMetadataOrderedCollection(Of T), IMetadataOrderedCollection(Of T), _
IMutableMetadataCollection(Of T), IMetadataCollection(Of T), IEnumerable(Of T), _
IEnumerable
‘사용 방법
Dim instance As OrderedCollectionBase(Of T)
public abstract class OrderedCollectionBase<T> : IMutableMetadataOrderedCollection<T>,
IMetadataOrderedCollection<T>, IMutableMetadataCollection<T>, IMetadataCollection<T>, IEnumerable<T>,
IEnumerable
where T : class, IMetadataObject
generic<typename T>
where T : ref class, IMetadataObject
public ref class OrderedCollectionBase abstract : IMutableMetadataOrderedCollection<T>,
IMetadataOrderedCollection<T>, IMutableMetadataCollection<T>, IMetadataCollection<T>, IEnumerable<T>,
IEnumerable
[<AbstractClassAttribute>]
type OrderedCollectionBase<'T when 'T : not struct and IMetadataObject> =
class
interface IMutableMetadataOrderedCollection<'T>
interface IMetadataOrderedCollection<'T>
interface IMutableMetadataCollection<'T>
interface IMetadataCollection<'T>
interface IEnumerable<'T>
interface IEnumerable
end
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.
유형 매개 변수
- T
The type of the elements in the collection.
OrderedCollectionBase<T> 유형에서 다음 멤버를 표시합니다.
생성자
이름 | 설명 | |
---|---|---|
OrderedCollectionBase<T> | Initializes a new instance of the OrderedCollectionBase<T> class that uses the specified capacity and CollationInfo object. |
맨 위로 이동
속성
이름 | 설명 | |
---|---|---|
AsMetadataObjectCollection | Gets an IMetadataCollection<T> object that contains this collection. | |
Count | Gets the number of elements in the collection. | |
Item[Int32] | Gets the element at the specified index. | |
Item[String] | Gets or sets the element that has the specified name. |
맨 위로 이동
메서드
이름 | 설명 | |
---|---|---|
Add | Adds an object to the collection using its name as the key. | |
AddRange | Adds the elements of the specified collection to this collection. | |
Clear | Removes all elements from the collection. | |
Clone() | Creates an IMutableMetadataCollection<T> instance that is a copy of this object, except for the elements. | |
Clone(Boolean) | Creates an IMutableMetadataCollection<T> instance that is a copy of this object and, if specified, also copies the elements. | |
Contains(String) | Determines whether the specified element is in the collection. | |
Contains(T) | Determines whether the specified element is in the collection. | |
Equals | (Object에서 상속됨) | |
Finalize | (Object에서 상속됨) | |
FindAll(Predicate<T>) | Finds all elements in the collection that match the conditions that are defined by the specified predicate. | |
FindAll(String) | Finds all elements in the collection that have the specified name. | |
GetEnumerator | Returns an enumerator that iterates through the collection. | |
GetHashCode | (Object에서 상속됨) | |
GetType | (Object에서 상속됨) | |
MemberwiseClone | (Object에서 상속됨) | |
Remove(String) | Removes the element that has the specified name from the collection. | |
Remove(T) | Removes the specified element from the collection. | |
ToString | (Object에서 상속됨) |
맨 위로 이동
명시적 인터페이스 구현
이름 | 설명 | |
---|---|---|
IEnumerable.GetEnumerator | Returns an enumerator that can iterate through the collection. | |
IMetadataCollection<T>.Item | Gets the element that has the specified name. |
맨 위로 이동
주의
This collection can be used when the order of the items must be preserved (for example, parameter collections).
스레드 보안
이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.
참고 항목
참조
Microsoft.SqlServer.Management.SqlParser.MetadataProvider 네임스페이스