OrderedCollectionBase<T> Class

 

Represents a metadata object collection that preserves item ordering.

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

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

[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.

NameDescription
System_CAPS_protmethodOrderedCollectionBase<T>(Int32, CollationInfo)

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

NameDescription
System_CAPS_pubpropertyAsMetadataObjectCollection

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

System_CAPS_pubpropertyCount

Gets the number of elements in the collection.

System_CAPS_pubpropertyItem[Int32]

Gets the element at the specified index.

System_CAPS_pubpropertyItem[String]

Gets or sets the element that has the specified name.

NameDescription
System_CAPS_pubmethodAdd(T)

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

System_CAPS_pubmethodAddRange(IEnumerable<T>)

Adds the elements of the specified collection to this collection.

System_CAPS_pubmethodClear()

Removes all elements from the collection.

System_CAPS_pubmethodClone()

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

System_CAPS_pubmethodClone(Boolean)

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

System_CAPS_pubmethodContains(T)

Determines whether the specified element is in the collection.

System_CAPS_pubmethodContains(String)

Determines whether the specified element is in the collection.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFindAll(Predicate<T>)

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

System_CAPS_pubmethodFindAll(String)

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

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the collection.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemove(T)

Removes the specified element from the collection.

System_CAPS_pubmethodRemove(String)

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

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Returns an enumerator that can iterate through the collection.

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.

Return to top
Show: