Export (0) Print
Expand All

OrderedCollectionBase<T> Class

Represents a metadata object collection that preserves item ordering.

Object
  Microsoft.SqlServer.Management.SqlParser.MetadataProvider.OrderedCollectionBase<T>
    Microsoft.SqlServer.Management.SqlParser.MetadataProvider.OrderedCollection<T>

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

[DefaultMemberAttribute("Item")]
public abstract class OrderedCollectionBase<T> : IMutableMetadataOrderedCollection<T>, 
	IMetadataOrderedCollection<T>, IMutableMetadataCollection<T>, IMetadataCollection<T>, IEnumerable<T>, 
	IEnumerable 
where T : class, IMetadataObject

Type Parameters

T

The type of the elements in the collection.

The OrderedCollectionBase<T> type exposes the following members.

  NameDescription
Protected methodOrderedCollectionBase<T>Initializes a new instance of the OrderedCollectionBase<T> class that uses the specified capacity and CollationInfo object.
Top

  NameDescription
Public propertyAsMetadataObjectCollectionGets an IMetadataCollection<T> object that contains this collection.
Public propertyCountGets the number of elements in the collection.
Public propertyItem[Int32]Gets the element at the specified index.
Public propertyItem[String]Gets or sets the element that has the specified name.
Top

  NameDescription
Public methodAddAdds an object to the collection using its name as the key.
Public methodAddRangeAdds the elements of the specified collection to this collection.
Public methodClearRemoves all elements from the collection.
Public methodClone()Creates an IMutableMetadataCollection<T> instance that is a copy of this object, except for the elements.
Public methodClone(Boolean)Creates an IMutableMetadataCollection<T> instance that is a copy of this object and, if specified, also copies the elements.
Public methodContains(String)Determines whether the specified element is in the collection.
Public methodContains(T)Determines whether the specified element is in the collection.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindAll(Predicate<T>)Finds all elements in the collection that match the conditions that are defined by the specified predicate.
Public methodFindAll(String)Finds all elements in the collection that have the specified name.
Public methodGetEnumeratorReturns an enumerator that iterates through the collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove(String)Removes the element that has the specified name from the collection.
Public methodRemove(T)Removes the specified element from the collection.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerableGetEnumeratorReturns an enumerator that can iterate through the collection.
Explicit interface implemetationPrivate propertyIMetadataCollection<T>.ItemGets the element that has the specified name.
Top

This collection can be used when the order of the items must be preserved (for example, parameter collections).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft