Поделиться через


Интерфейс IMetadataCollection(T)

Defines size, enumerators, lookup and filtering methods for all metadata object collections. The interface provides read-only access to the elements in the collection.

Пространство имен:  Microsoft.SqlServer.Management.SqlParser.Metadata
Сборка:  Microsoft.SqlServer.Management.SqlParser (в Microsoft.SqlServer.Management.SqlParser.dll)

Синтаксис

'Декларация
Public Interface IMetadataCollection(Of T As IMetadataObject) _
    Inherits IEnumerable(Of T), IEnumerable
'Применение
Dim instance As IMetadataCollection(Of T)
public interface IMetadataCollection<T> : IEnumerable<T>, 
    IEnumerable
where T : IMetadataObject
generic<typename T>
where T : IMetadataObject
public interface class IMetadataCollection : IEnumerable<T>, 
    IEnumerable
type IMetadataCollection<'T when 'T : IMetadataObject> =  
    interface
        interface IEnumerable<'T>
        interface IEnumerable
    end
JScript не поддерживает стандартные типы и методы.

Параметры типа

  • T
    The type of the elements in the collection, constrained to IMetadataObject.

Тип IMetadataCollection<(Of <(<'T>)>)> обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство AsMetadataObjectCollection Gets an IMetadataCollection<(Of <(<'T>)>)> object that contains this collection.
Открытое свойство Count Gets the number of elements in the collection.
Открытое свойство Item Gets the element in the collection by name.

В начало

Методы

  Имя Описание
Открытый метод Contains(String) Determines whether the collection contains an element that has the specified name.
Открытый метод Contains(T) Determines whether the collection contains the specified object.
Открытый метод FindAll(Predicate< (Of < <' (T> ) > > )) Retrieves all elements in the collection that match the conditions defined by the specified predicate.
Открытый метод FindAll(String) Retrieves all elements in the collection that have the specified name.
Открытый метод GetEnumerator() () () () (Производный от IEnumerable< (Of < ( <'T> ) > ) >.)
Открытый метод GetEnumerator() () () () (Производный от IEnumerable.)

В начало