Partager via


Interface IMutableMetadataCollection(T)

Defines methods to manipulate collections of objects that implement the IMetadataObject interface.

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

Syntaxe

'Déclaration
Public Interface IMutableMetadataCollection(Of T As IMetadataObject) _
    Inherits IMetadataCollection(Of T), IEnumerable(Of T), IEnumerable
'Utilisation
Dim instance As IMutableMetadataCollection(Of T)
public interface IMutableMetadataCollection<T> : IMetadataCollection<T>, 
    IEnumerable<T>, IEnumerable
where T : IMetadataObject
generic<typename T>
where T : IMetadataObject
public interface class IMutableMetadataCollection : IMetadataCollection<T>, 
    IEnumerable<T>, IEnumerable
type IMutableMetadataCollection<'T when 'T : IMetadataObject> =  
    interface
        interface IMetadataCollection<'T>
        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 IMutableMetadataCollection<(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. (hérité de IMetadataCollection< (Of < ( <'T> ) > ) >.)
Propriété publique Count Gets the number of elements in the collection. (hérité de IMetadataCollection< (Of < ( <'T> ) > ) >.)
Propriété publique Item[ ( [ ( String] ) ] ) Gets the element in the collection by name. (hérité de IMetadataCollection< (Of < ( <'T> ) > ) >.)
Propriété publique Item[ ( [ ( String] ) ] ) Gets or sets the element in the collection by name.

Haut de la page

Méthodes

  Nom Description
Méthode publique Add Adds an element to the end of the collection.
Méthode publique AddRange Adds the elements in the specified collection to the end of this collection.
Méthode publique Clear Removes all elements from the collection.
Méthode publique Clone() () () () Creates an IMutableMetadataCollection<(Of <(<'T>)>)> instance that is a copy of this object, except for the elements.
Méthode publique Clone(Boolean) Creates an IMutableMetadataCollection<(Of <(<'T>)>)> instance that is a copy of this object and, if specified, also copies the elements.
Méthode publique Contains(String) Determines whether the collection contains an element that has the specified name. (hérité de IMetadataCollection< (Of < ( <'T> ) > ) >.)
Méthode publique FindAll(Predicate< (Of < <' (T> ) > > )) Retrieves all elements in the collection that match the conditions defined by the specified predicate. (hérité de IMetadataCollection< (Of < ( <'T> ) > ) >.)
Méthode publique FindAll(String) Retrieves all elements in the collection that have the specified name. (hérité de IMetadataCollection< (Of < ( <'T> ) > ) >.)
Méthode publique GetEnumerator() () () () (hérité de IEnumerable< (Of < ( <'T> ) > ) >.)
Méthode publique GetEnumerator() () () () (hérité de IEnumerable.)
Méthode publique Remove(String) Removes the first element that has the specified name from the collection.
Méthode publique Remove(T) Removes the first occurrence of a specific object from the collection.

Haut de la page