Collection<T>.Merge Method (Boolean, 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 ( _
allowDuplicates As Boolean, _
collection1 As IMetadataCollection(Of T), _
collection2 As IMetadataCollection(Of T) _
) As IMetadataCollection(Of T)
'Usage
Dim allowDuplicates As Boolean
Dim collection1 As IMetadataCollection(Of T)
Dim collection2 As IMetadataCollection(Of T)
Dim returnValue As IMetadataCollection(Of T)
returnValue = Collection.Merge(allowDuplicates, _
collection1, collection2)
public static IMetadataCollection<T> Merge(
bool allowDuplicates,
IMetadataCollection<T> collection1,
IMetadataCollection<T> collection2
)
public:
static IMetadataCollection<T>^ Merge(
bool allowDuplicates,
IMetadataCollection<T>^ collection1,
IMetadataCollection<T>^ collection2
)
static member Merge :
allowDuplicates:bool *
collection1:IMetadataCollection<'T> *
collection2:IMetadataCollection<'T> -> IMetadataCollection<'T>
public static function Merge(
allowDuplicates : boolean,
collection1 : IMetadataCollection<T>,
collection2 : IMetadataCollection<T>
) : IMetadataCollection<T>
Parameters
- allowDuplicates
Type: System.Boolean
true to allow duplicates in the collection; otherwise, false.
- collection1
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<T>
The first IMetadataCollection<T> to merge.
- collection2
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<T>
The second IMetadataCollection<T> to merge.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<T>
An IMetadataCollection<T> object that represents the merged collection.