OrderedCollection<T> OrderedCollection<T> OrderedCollection<T> Class

Definition

Represents an ordered collection.

generic <typename T>
 where T : class, IMetadataObjectpublic ref class OrderedCollection : Microsoft::SqlServer::Management::SqlParser::MetadataProvider::OrderedCollectionBase<T>, Microsoft::SqlServer::Management::SqlParser::Metadata::IMetadataCollection<Microsoft::SqlServer::Management::SqlParser::Metadata::IMetadataObject ^>, Microsoft::SqlServer::Management::SqlParser::Metadata::IMetadataOrderedCollection<Microsoft::SqlServer::Management::SqlParser::Metadata::IMetadataObject ^>, System::Collections::Generic::IEnumerable<Microsoft::SqlServer::Management::SqlParser::Metadata::IMetadataObject ^>
public class OrderedCollection<T> : Microsoft.SqlServer.Management.SqlParser.MetadataProvider.OrderedCollectionBase<T>, Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataObject>, Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataOrderedCollection<Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataObject>, System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataObject> where T : class, IMetadataObject
Public Class OrderedCollection(Of T)
Inherits OrderedCollectionBase(Of T)
Implements IEnumerable(Of IMetadataObject), IMetadataCollection(Of IMetadataObject), IMetadataOrderedCollection(Of IMetadataObject)
Type Parameters
T

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

Inheritance
OrderedCollection<T>OrderedCollection<T>OrderedCollection<T>
Derived
Implements

Constructors

OrderedCollection<T>(CollationInfo) OrderedCollection<T>(CollationInfo) OrderedCollection<T>(CollationInfo)

Initializes a new instance of the OrderedCollection<T> class that uses the specified CollationInfo object and the default initial capacity.

OrderedCollection<T>(Int32, CollationInfo) OrderedCollection<T>(Int32, CollationInfo) OrderedCollection<T>(Int32, CollationInfo)

Initializes a new instance of the OrderedCollection<T> class that uses the specified capacity and CollationInfo object.

Properties

AsMetadataObjectCollection AsMetadataObjectCollection AsMetadataObjectCollection

Gets an IMetadataCollection<T> object that contains this collection.

Count Count Count

Gets the number of elements in the collection.

(Inherited from OrderedCollectionBase<T>)
IMetadataCollection<T>.Item[String] IMetadataCollection<T>.Item[String] IMetadataCollection<T>.Item[String] Inherited from OrderedCollectionBase<T>
Item[Int32] Item[Int32] Item[Int32]

Gets the element at the specified index.

(Inherited from OrderedCollectionBase<T>)
Item[String] Item[String] Item[String]

Gets or sets the element that has the specified name.

(Inherited from OrderedCollectionBase<T>)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that can iterate through the collection.

IEnumerable<IMetadataObject>.GetEnumerator() IEnumerable<IMetadataObject>.GetEnumerator() IEnumerable<IMetadataObject>.GetEnumerator()

Returns an enumerator that iterates through the collection.

IMetadataCollection<IMetadataObject>.AsMetadataObjectCollection IMetadataCollection<IMetadataObject>.AsMetadataObjectCollection IMetadataCollection<IMetadataObject>.AsMetadataObjectCollection
IMetadataCollection<IMetadataObject>.Contains(IMetadataObject) IMetadataCollection<IMetadataObject>.Contains(IMetadataObject) IMetadataCollection<IMetadataObject>.Contains(IMetadataObject)

Determines whether the collection contains the specified object.

IMetadataCollection<IMetadataObject>.Contains(String) IMetadataCollection<IMetadataObject>.Contains(String) IMetadataCollection<IMetadataObject>.Contains(String)

Determines whether the collection contains the specified element.

IMetadataCollection<IMetadataObject>.Count IMetadataCollection<IMetadataObject>.Count IMetadataCollection<IMetadataObject>.Count
IMetadataCollection<IMetadataObject>.FindAll(Predicate<IMetadataObject>) IMetadataCollection<IMetadataObject>.FindAll(Predicate<IMetadataObject>) IMetadataCollection<IMetadataObject>.FindAll(Predicate<IMetadataObject>)

Retrieves all elements in the collection that match the conditions defined by the specified predicate.

IMetadataCollection<IMetadataObject>.FindAll(String) IMetadataCollection<IMetadataObject>.FindAll(String) IMetadataCollection<IMetadataObject>.FindAll(String)

Retrieves all elements in the collection that have the specified name.

IMetadataCollection<IMetadataObject>.Item[String] IMetadataCollection<IMetadataObject>.Item[String] IMetadataCollection<IMetadataObject>.Item[String]
IMetadataOrderedCollection<IMetadataObject>.Item[Int32] IMetadataOrderedCollection<IMetadataObject>.Item[Int32] IMetadataOrderedCollection<IMetadataObject>.Item[Int32]

Methods

Add(T) Add(T) Add(T)

Adds an object to the collection using its name as the key.

(Inherited from OrderedCollectionBase<T>)
AddRange(IEnumerable<T>) AddRange(IEnumerable<T>) AddRange(IEnumerable<T>)

Adds the elements of the specified collection to this collection.

(Inherited from OrderedCollectionBase<T>)
Clear() Clear() Clear()

Removes all elements from the collection.

(Inherited from OrderedCollectionBase<T>)
Clone() Clone() Clone()

Creates an IMutableMetadataCollection<T> instance that is a copy of this object, except for the elements.

(Inherited from OrderedCollectionBase<T>)
Clone(Boolean) Clone(Boolean) Clone(Boolean)

Creates an IMutableMetadataCollection<T> instance that is a copy of this object and, if specified, also copies the elements.

(Inherited from OrderedCollectionBase<T>)
Contains(String) Contains(String) Contains(String)

Determines whether the specified element is in the collection.

(Inherited from OrderedCollectionBase<T>)
Contains(T) Contains(T) Contains(T)

Determines whether the specified element is in the collection.

(Inherited from OrderedCollectionBase<T>)
FindAll(Predicate<T>) FindAll(Predicate<T>) FindAll(Predicate<T>)

Finds all elements in the collection that match the conditions that are defined by the specified predicate.

(Inherited from OrderedCollectionBase<T>)
FindAll(String) FindAll(String) FindAll(String)

Finds all elements in the collection that have the specified name.

(Inherited from OrderedCollectionBase<T>)
GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the collection.

(Inherited from OrderedCollectionBase<T>)
Remove(String) Remove(String) Remove(String)

Removes the element that has the specified name from the collection.

(Inherited from OrderedCollectionBase<T>)
Remove(T) Remove(T) Remove(T)

Removes the specified element from the collection.

(Inherited from OrderedCollectionBase<T>)

Applies to