Share via


Collection<T>.Merge Method (IMetadataCollection<T>, IMetadataCollection<T>)

Merges the two specified collections into one collection.

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

Syntax

'Declaration
Public Shared Function Merge ( _
    collection1 As IMetadataCollection(Of T), _
    collection2 As IMetadataCollection(Of T) _
) As IMetadataCollection(Of T)
'Usage
Dim collection1 As IMetadataCollection(Of T)
Dim collection2 As IMetadataCollection(Of T)
Dim returnValue As IMetadataCollection(Of T)

returnValue = Collection.Merge(collection1, _
    collection2)
public static IMetadataCollection<T> Merge(
    IMetadataCollection<T> collection1,
    IMetadataCollection<T> collection2
)
public:
static IMetadataCollection<T>^ Merge(
    IMetadataCollection<T>^ collection1, 
    IMetadataCollection<T>^ collection2
)
static member Merge : 
        collection1:IMetadataCollection<'T> * 
        collection2:IMetadataCollection<'T> -> IMetadataCollection<'T> 
public static function Merge(
    collection1 : IMetadataCollection<T>, 
    collection2 : IMetadataCollection<T>
) : IMetadataCollection<T>

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<T>
An IMetadataCollection<T> object that represents the merged collection.