Collection<T> 클래스

Provides helper methods and classes for metadata object collections.

상속 계층

System.Object
  Microsoft.SqlServer.Management.SqlParser.MetadataProvider.Collection<T>

네임스페이스:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
어셈블리:  Microsoft.SqlServer.Management.SqlParser(Microsoft.SqlServer.Management.SqlParser.dll)

구문

‘선언
Public NotInheritable Class Collection(Of T As {Class, IMetadataObject})
‘사용 방법
public static class Collection<T>
where T : class, IMetadataObject
generic<typename T>
where T : ref class, IMetadataObject 
public ref class Collection abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type Collection<'T when 'T : not struct and IMetadataObject> =  class end
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.

유형 매개 변수

  • T
    The type of the elements in the collection.

Collection<T> 유형에서 다음 멤버를 표시합니다.

속성

  이름 설명
공용 속성정적 멤버 Empty Gets a singleton, read-only, empty collection instance.
공용 속성정적 멤버 EmptyOrdered Gets a singleton, read-only, ordered collection instance.

맨 위로 이동

메서드

  이름 설명
공용 메서드정적 멤버 ApplyOnFirstAccess<C> Applies the specified action on each element of the specified collection the first time the element is accessed.
공용 메서드정적 멤버 Convert<TDerived> Creates a wrapper collection that can be used to access elements in the specified collection by using its base type.
공용 메서드정적 멤버 CopyToArray Creates an array that contains all the items from the specified collection.
공용 메서드정적 멤버 CreateOrderedCollection(CollationInfo, T) Creates an IMetadataOrderedCollection<T> object that contains the specified item.
공용 메서드정적 멤버 CreateOrderedCollection(CollationInfo, array<T[]) Creates an IMetadataOrderedCollection<T> object and copies all elements from the specified array.
공용 메서드정적 멤버 CreateOrderedCollection(CollationInfo, T, T) Creates an IMetadataOrderedCollection<T> object that contains the two specified items.
공용 메서드정적 멤버 CreateOrderedCollection(CollationInfo, array<T[], Int32) Creates an IMetadataOrderedCollection<T> object and copies a specified number of elements from the specified array.
공용 메서드정적 멤버 Filter Creates a wrapper collection that filters out all the elements that do not match the conditions defined by the specified predicate.
공용 메서드정적 멤버 Merge(array<IMetadataCollection<T>[]) Merges the IMetadataCollection<T> objects into one collection.
공용 메서드정적 멤버 Merge(Boolean, array<IMetadataCollection<T>[]) Merges two or more collections into one collection.
공용 메서드정적 멤버 Merge(IMetadataCollection<T>, IMetadataCollection<T>) Merges the two specified collections into one collection.
공용 메서드정적 멤버 Merge(Boolean, IMetadataCollection<T>, IMetadataCollection<T>) Merges the two specified collections into one collection.

맨 위로 이동

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.SqlParser.MetadataProvider 네임스페이스