Partager via


Interface 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.

Espace de noms :  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly :  Microsoft.SqlServer.Management.SqlParser (en Microsoft.SqlServer.Management.SqlParser.dll)

Syntaxe

'Déclaration
Public Interface IMetadataCollection(Of T As IMetadataObject) _
    Inherits IEnumerable(Of T), IEnumerable
'Utilisation
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 ne prend pas en charge les types et les méthodes génériques.

Paramètres de type

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

Le type IMetadataCollection<(Of <(<'T>)>)> expose les membres suivants.

Propriétés

  Nom Description
Propriété publique AsMetadataObjectCollection Gets an IMetadataCollection<(Of <(<'T>)>)> object that contains this collection.
Propriété publique Count Gets the number of elements in the collection.
Propriété publique Item Gets the element in the collection by name.

Haut de la page

Méthodes

  Nom Description
Méthode publique Contains(String) Determines whether the collection contains an element that has the specified name.
Méthode publique Contains(T) Determines whether the collection contains the specified object.
Méthode publique FindAll(Predicate< (Of < <' (T> ) > > )) Retrieves all elements in the collection that match the conditions defined by the specified predicate.
Méthode publique FindAll(String) Retrieves all elements in the collection that have the specified name.
Méthode publique GetEnumerator() () () () (hérité de IEnumerable< (Of < ( <'T> ) > ) >.)
Méthode publique GetEnumerator() () () () (hérité de IEnumerable.)

Haut de la page