Compartir a través de


Interfaz IMutableMetadataCollection(T)

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

Espacio de nombres:  Microsoft.SqlServer.Management.SqlParser.Metadata
Ensamblado:  Microsoft.SqlServer.Management.SqlParser (en Microsoft.SqlServer.Management.SqlParser.dll)

Sintaxis

'Declaración
Public Interface IMutableMetadataCollection(Of T As IMetadataObject) _
    Inherits IMetadataCollection(Of T), IEnumerable(Of T), IEnumerable
'Uso
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 no admite tipos y métodos genéricos.

Parámetros de tipo

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

El tipo IMutableMetadataCollection<(Of <(<'T>)>)> expone los siguientes miembros.

Propiedades

  Nombre Descripción
Propiedad pública AsMetadataObjectCollection Gets an IMetadataCollection<(Of <(<'T>)>)> object that contains this collection. (Se hereda de IMetadataCollection< (Of < ( <'T> ) > ) >.)
Propiedad pública Count Gets the number of elements in the collection. (Se hereda de IMetadataCollection< (Of < ( <'T> ) > ) >.)
Propiedad pública Item[ ( [ ( String] ) ] ) Gets the element in the collection by name. (Se hereda de IMetadataCollection< (Of < ( <'T> ) > ) >.)
Propiedad pública Item[ ( [ ( String] ) ] ) Gets or sets the element in the collection by name.

Arriba

Métodos

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

Arriba