Share via


IMutableMetadataOrderedCollection<T> Interface

Represents a mutable collection of metadata objects where the element ordering is preserved.

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

Syntax

'Declaration
Public Interface IMutableMetadataOrderedCollection(Of T As {Class, IMetadataObject}) _
    Inherits IMetadataOrderedCollection(Of T), IMutableMetadataCollection(Of T), IMetadataCollection(Of T),  _
    IEnumerable(Of T), IEnumerable
'Usage
Dim instance As IMutableMetadataOrderedCollection(Of T)
public interface IMutableMetadataOrderedCollection<T> : IMetadataOrderedCollection<T>, 
    IMutableMetadataCollection<T>, IMetadataCollection<T>, IEnumerable<T>, IEnumerable 
where T : class, IMetadataObject
generic<typename T>
where T : ref class, IMetadataObject 
public interface class IMutableMetadataOrderedCollection : IMetadataOrderedCollection<T>, 
    IMutableMetadataCollection<T>, IMetadataCollection<T>, IEnumerable<T>, IEnumerable
type IMutableMetadataOrderedCollection<'T when 'T : not struct and IMetadataObject> =  
    interface 
        interface IMetadataOrderedCollection<'T>
        interface IMutableMetadataCollection<'T>
        interface IMetadataCollection<'T>
        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 IMutableMetadataOrderedCollection<T> type exposes the following members.

Properties

  Name Description
Public property AsMetadataObjectCollection Gets an IMetadataCollection<T> object that contains this collection. (Inherited from IMetadataCollection<T>.)
Public property Count Gets the number of elements in the collection. (Inherited from IMetadataCollection<T>.)
Public property Item[Int32] Gets the element at the specified index. (Inherited from IMetadataOrderedCollection<T>.)
Public property Item[String] Gets or sets the element in the collection by name. (Inherited from IMutableMetadataCollection<T>.)

Top

Methods

  Name Description
Public method Add Adds an element to the end of the collection. (Inherited from IMutableMetadataCollection<T>.)
Public method AddRange Adds the elements in the specified collection to the end of this collection. (Inherited from IMutableMetadataCollection<T>.)
Public method Clear Removes all elements from the collection. (Inherited from IMutableMetadataCollection<T>.)
Public method Clone() Creates an IMutableMetadataCollection<T> instance that is a copy of this object, except for the elements. (Inherited from IMutableMetadataCollection<T>.)
Public method Clone(Boolean) Creates an IMutableMetadataCollection<T> instance that is a copy of this object and, if specified, also copies the elements. (Inherited from IMutableMetadataCollection<T>.)
Public method Contains(String) Determines whether the collection contains an element that has the specified name. (Inherited from IMetadataCollection<T>.)
Public method FindAll(Predicate<T>) Retrieves all elements in the collection that match the conditions defined by the specified predicate. (Inherited from IMetadataCollection<T>.)
Public method FindAll(String) Retrieves all elements in the collection that have the specified name. (Inherited from IMetadataCollection<T>.)
Public method GetEnumerator (Inherited from IEnumerable<T>.)
Public method Remove(String) Removes the first element that has the specified name from the collection. (Inherited from IMutableMetadataCollection<T>.)

Top

See Also

Reference

Microsoft.SqlServer.Management.SqlParser.Metadata Namespace