IMetadataCollection<T> Interface

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

Namespace:  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Interface IMetadataCollection(Of T As IMetadataObject) _
    Inherits IEnumerable(Of T), IEnumerable
'Usage
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 does not support generic types and methods.

Type Parameters

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

The IMetadataCollection<T> type exposes the following members.

Properties

  Name Description
Public property AsMetadataObjectCollection Gets an IMetadataCollection<T> object that contains this collection.
Public property Count Gets the number of elements in the collection.
Public property Item Gets the element in the collection by name.

Top

Methods

  Name Description
Public method Contains(String) Determines whether the collection contains an element that has the specified name.
Public method Contains(T) Determines whether the collection contains the specified object.
Public method FindAll(Predicate<T>) Retrieves all elements in the collection that match the conditions defined by the specified predicate.
Public method FindAll(String) Retrieves all elements in the collection that have the specified name.
Public method GetEnumerator (Inherited from IEnumerable<T>.)

Top

See Also

Reference

Microsoft.SqlServer.Management.SqlParser.Metadata Namespace