Export (0) Print
Expand All

Collection<T> Class

Provides helper methods and classes for metadata object collections.

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

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

public static class Collection<T>
where T : class, IMetadataObject

Type Parameters

T

The type of the elements in the collection.

The Collection<T> type exposes the following members.

  NameDescription
Public propertyStatic memberEmptyGets a singleton, read-only, empty collection instance.
Public propertyStatic memberEmptyOrderedGets a singleton, read-only, ordered collection instance.
Top

  NameDescription
Public methodStatic memberApplyOnFirstAccess<C>Applies the specified action on each element of the specified collection the first time the element is accessed.
Public methodStatic memberConvert<TDerived>Creates a wrapper collection that can be used to access elements in the specified collection by using its base type.
Public methodStatic memberCopyToArrayCreates an array that contains all the items from the specified collection.
Public methodStatic memberCreateOrderedCollection(CollationInfo, T)Creates an IMetadataOrderedCollection<T> object that contains the specified item.
Public methodStatic memberCreateOrderedCollection(CollationInfo, T[])Creates an IMetadataOrderedCollection<T> object and copies all elements from the specified array.
Public methodStatic memberCreateOrderedCollection(CollationInfo, T, T)Creates an IMetadataOrderedCollection<T> object that contains the two specified items.
Public methodStatic memberCreateOrderedCollection(CollationInfo, T[], Int32)Creates an IMetadataOrderedCollection<T> object and copies a specified number of elements from the specified array.
Public methodStatic memberFilterCreates a wrapper collection that filters out all the elements that do not match the conditions defined by the specified predicate.
Public methodStatic memberMerge(IMetadataCollection<T>[])Merges the IMetadataCollection<T> objects into one collection.
Public methodStatic memberMerge(Boolean, IMetadataCollection<T>[])Merges two or more collections into one collection.
Public methodStatic memberMerge(IMetadataCollection<T>, IMetadataCollection<T>)Merges the two specified collections into one collection.
Public methodStatic memberMerge(Boolean, IMetadataCollection<T>, IMetadataCollection<T>)Merges the two specified collections into one collection.
Top

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