DictionaryCollectionBase<T, U> 클래스

Provides the base class for metadata object collections.

상속 계층

System.Object
  Microsoft.SqlServer.Management.SqlParser.MetadataProvider.DictionaryCollectionBase<T, U>
    Microsoft.SqlServer.Management.SqlParser.MetadataProvider.DictionaryCollection<T>
    Microsoft.SqlServer.Management.SqlParser.MetadataProvider.SortedListCollection<T>

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

구문

‘선언
Public MustInherit Class DictionaryCollectionBase(Of T As {Class, IMetadataObject}, U As {Class, Object, IDictionary(Of String, T)}) _
    Implements IMutableMetadataCollection(Of T), IMetadataCollection(Of T),  _
    IEnumerable(Of T), IEnumerable
‘사용 방법
Dim instance As DictionaryCollectionBase(Of T, U)
public abstract class DictionaryCollectionBase<T, U> : IMutableMetadataCollection<T>, 
    IMetadataCollection<T>, IEnumerable<T>, IEnumerable 
where T : class, IMetadataObject 
where U : class, Object, IDictionary<string, T>
generic<typename T, typename U>
where T : ref class, IMetadataObject 
where U : ref class, Object, IDictionary<String^, T>
public ref class DictionaryCollectionBase abstract : IMutableMetadataCollection<T>, 
    IMetadataCollection<T>, IEnumerable<T>, IEnumerable
[<AbstractClassAttribute>]
type DictionaryCollectionBase<'T, 'U when 'T : not struct and IMetadataObject when 'U : not struct and Object and IDictionary<string, 'T>> =  
    class 
        interface IMutableMetadataCollection<'T>
        interface IMetadataCollection<'T>
        interface IEnumerable<'T>
        interface IEnumerable 
    end
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.

유형 매개 변수

  • T
    The type of the elements in the collection, constrained to IMetadataObject.
  • U
    The type of the underlying container, constrained to IDictionary.

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

생성자

  이름 설명
보호된 메서드 DictionaryCollectionBase<T, U> Initializes a new instance of the DictionaryCollectionBase class.

맨 위로 이동

속성

  이름 설명
공용 속성 AsMetadataObjectCollection Gets an IMetaCollection object that contains this collection.
공용 속성 Count Gets the number of elements in the collection.
공용 속성 Item Gets or sets the object in the collection that has the specified name.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Add Adds an object to the collection using its name as the key.
공용 메서드 AddRange Adds the elements in the specified collection to this collection.
공용 메서드 Clear Removes all elements from the collection.
공용 메서드 Clone() Creates an IMutableMetadataCollection<T> object that is a copy of this object, except for the elements.
공용 메서드 Clone(Boolean) Creates an IMutableMetadataCollection<T> object 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 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 object with the specified name from the collection.
공용 메서드 Remove(T) Removes the specified object from the collection.
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현전용 메서드 IEnumerable.GetEnumerator Returns an enumerator that iterates through the collection.
명시적 인터페이스 구현전용 속성 IMetadataCollection<T>.Item Gets the specified element from the collection.

맨 위로 이동

스레드 보안

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

참고 항목

참조

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