Partager via


UnionClauses Method

Unions the result of two SearchClause objects.

Namespace:  Microsoft.CommerceServer
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

'Declaration
Public Overridable Function UnionClauses ( _
    leftHandSide As SearchClause, _
    rightHandSide As SearchClause _
) As SearchClause
'Usage
Dim instance As SearchClauseFactory
Dim leftHandSide As SearchClause
Dim rightHandSide As SearchClause
Dim returnValue As SearchClause

returnValue = instance.UnionClauses(leftHandSide, _
    rightHandSide)
public virtual SearchClause UnionClauses(
    SearchClause leftHandSide,
    SearchClause rightHandSide
)
public:
virtual SearchClause^ UnionClauses(
    SearchClause^ leftHandSide, 
    SearchClause^ rightHandSide
)
public function UnionClauses(
    leftHandSide : SearchClause, 
    rightHandSide : SearchClause
) : SearchClause

Parameters

Return Value

Type: Microsoft.CommerceServer..::.SearchClause
A new SearchClause object representing the union of the two clauses.

Remarks

Use this method to create an 'or'-style join of two clauses. The UnionClauses computes the union of the two clauses. The union of the two clauses give you a search clause that contains a filter that provides a result set that includes all of the queries that satisfy either search.

Permissions

See Also

Reference

SearchClauseFactory Class

SearchClauseFactory Members

Microsoft.CommerceServer Namespace