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

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

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

Синтаксис

'Декларация
Public Interface IMutableMetadataCollection(Of T As IMetadataObject) _
    Inherits IMetadataCollection(Of T), IEnumerable(Of T), IEnumerable
'Применение
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 не поддерживает стандартные типы и методы.

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

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

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

Свойства

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

В начало

Методы

  Имя Описание
Открытый метод Add Adds an element to the end of the collection.
Открытый метод AddRange Adds the elements in the specified collection to the end of this collection.
Открытый метод Clear Removes all elements from the collection.
Открытый метод Clone() () () () Creates an IMutableMetadataCollection<(Of <(<'T>)>)> instance that is a copy of this object, except for the elements.
Открытый метод Clone(Boolean) Creates an IMutableMetadataCollection<(Of <(<'T>)>)> instance that is a copy of this object and, if specified, also copies the elements.
Открытый метод Contains(String) Determines whether the collection contains an element that has the specified name. (Производный от IMetadataCollection< (Of < ( <'T> ) > ) >.)
Открытый метод FindAll(Predicate< (Of < <' (T> ) > > )) Retrieves all elements in the collection that match the conditions defined by the specified predicate. (Производный от IMetadataCollection< (Of < ( <'T> ) > ) >.)
Открытый метод FindAll(String) Retrieves all elements in the collection that have the specified name. (Производный от IMetadataCollection< (Of < ( <'T> ) > ) >.)
Открытый метод GetEnumerator() () () () (Производный от IEnumerable< (Of < ( <'T> ) > ) >.)
Открытый метод GetEnumerator() () () () (Производный от IEnumerable.)
Открытый метод Remove(String) Removes the first element that has the specified name from the collection.
Открытый метод Remove(T) Removes the first occurrence of a specific object from the collection.

В начало