TechTalk Genome v4.2

Set.Union Method (Set, Set, UnionMethod)

Returns the distinct union of two Sets. Builds the resulting query using the specified UnionMethod hint.

public static Set Union(
   Set left,
   Set right,
   UnionMethod hintedMethod
);

Parameters

left
A Set to be united.
right
A Set to be united.
hintedMethod
A value specifying which query building method should be used to compute the query of the resulting Set.

Return Value

A Set that contains all elements of left and right. The result is distinct, that means that every element in the resulting Set is unique. The query used for the resulting Set is built with the method specified in hintedMethod if that method is suitable for the source Sets; otherwise UnionMethod.Default is used.

Exceptions

Exception TypeCondition
GenomeException

The source Sets are in different DataDomains.

or

The source Sets have a different ElementType.

ArgumentNullException Either left or rigth is a null reference.

Requirements

Namespace: TechTalk.Genome

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.11.59

Editions: Professional, Evaluation, Express

See Also

Set Class | TechTalk.Genome Namespace | Set.Union Overload List | UnionMethod | Union