Share via


ScriptWebPart.Union<T> method

Returns the union of all items in multiple collections.

Namespace:  Microsoft.Office.Server.Search.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Protected Shared Function Union(Of T) ( _
    all As IEnumerable(Of IEnumerable(Of T)), _
    comparer As IEqualityComparer(Of T) _
) As IEnumerable(Of T)
'Usage
Dim all As IEnumerable(Of IEnumerable(Of T))
Dim comparer As IEqualityComparer(Of T)
Dim returnValue As IEnumerable(Of T)

returnValue = ScriptWebPart.Union(all, comparer)
protected static IEnumerable<T> Union<T>(
    IEnumerable<IEnumerable<T>> all,
    IEqualityComparer<T> comparer
)

Type parameters

  • T
    The type of items in the collections to be combined.

Parameters

Return value

Type: System.Collections.Generic.IEnumerable<T>

See also

Reference

ScriptWebPart class

ScriptWebPart members

Microsoft.Office.Server.Search.WebControls namespace