Collection<T> Class

 

Provides helper methods and classes for metadata object collections.

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

System::Object
  Microsoft.SqlServer.Management.SqlParser.MetadataProvider::Collection<T>

generic<typename T>
where T : ref class, IMetadataObject
public ref class Collection abstract sealed 

Type Parameters

T

The type of the elements in the collection.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticEmpty

Gets a singleton, read-only, empty collection instance.

System_CAPS_pubpropertySystem_CAPS_staticEmptyOrdered

Gets a singleton, read-only, ordered collection instance.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticApplyOnFirstAccess<C>(IMutableMetadataCollection<C>^, Action<C>^, Predicate<C>^)

Applies the specified action on each element of the specified collection the first time the element is accessed.

System_CAPS_pubmethodSystem_CAPS_staticConvert<TDerived>(IMetadataCollection<TDerived>^)

Creates a wrapper collection that can be used to access elements in the specified collection by using its base type.

System_CAPS_pubmethodSystem_CAPS_staticCopyToArray(IMetadataCollection<T>^)

Creates an array that contains all the items from the specified collection.

System_CAPS_pubmethodSystem_CAPS_staticCreateOrderedCollection(CollationInfo^, T)

Creates an IMetadataOrderedCollection<T> object that contains the specified item.

System_CAPS_pubmethodSystem_CAPS_staticCreateOrderedCollection(CollationInfo^, T, T)

Creates an IMetadataOrderedCollection<T> object that contains the two specified items.

System_CAPS_pubmethodSystem_CAPS_staticCreateOrderedCollection(CollationInfo^, array<T>^)

Creates an IMetadataOrderedCollection<T> object and copies all elements from the specified array.

System_CAPS_pubmethodSystem_CAPS_staticCreateOrderedCollection(CollationInfo^, array<T>^, Int32)

Creates an IMetadataOrderedCollection<T> object and copies a specified number of elements from the specified array.

System_CAPS_pubmethodSystem_CAPS_staticFilter(IMetadataCollection<T>^, Predicate<T>^)

Creates a wrapper collection that filters out all the elements that do not match the conditions defined by the specified predicate.

System_CAPS_pubmethodSystem_CAPS_staticMerge(Boolean, IMetadataCollection<T>^, IMetadataCollection<T>^)

Merges the two specified collections into one collection.

System_CAPS_pubmethodSystem_CAPS_staticMerge(Boolean, array<IMetadataCollection<T>^>^)

Merges two or more collections into one collection.

System_CAPS_pubmethodSystem_CAPS_staticMerge(IMetadataCollection<T>^, IMetadataCollection<T>^)

Merges the two specified collections into one collection.

System_CAPS_pubmethodSystem_CAPS_staticMerge(array<IMetadataCollection<T>^>^)

Merges the IMetadataCollection<T> objects into one collection.

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: