Collection<T>.Merge Method (Boolean, array<IMetadataCollection<T>[])
Merges two or more 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, _
ParamArray collections As IMetadataCollection(Of T)() _
) As IMetadataCollection(Of T)
'Usage
Dim allowDuplicates As Boolean
Dim collections As IMetadataCollection(Of T)()
Dim returnValue As IMetadataCollection(Of T)
returnValue = Collection.Merge(allowDuplicates, _
collections)
public static IMetadataCollection<T> Merge(
bool allowDuplicates,
params IMetadataCollection<T>[] collections
)
public:
static IMetadataCollection<T>^ Merge(
bool allowDuplicates,
... array<IMetadataCollection<T>^>^ collections
)
static member Merge :
allowDuplicates:bool *
collections:IMetadataCollection<'T>[] -> IMetadataCollection<'T>
public static function Merge(
allowDuplicates : boolean,
... collections : IMetadataCollection<T>[]
) : IMetadataCollection<T>
Parameters
- allowDuplicates
Type: System.Boolean
true to allow duplicates in the collection; otherwise, false.
- collections
Type: array<Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<T>[]
The list of IMetadataCollection<T> objects to merge.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<T>
An IMetadataCollection<T> object that represents the merged collection.