This document is archived and information here might be outdated.  Recommended version.


ISelectionSet.Combine Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

ISelectionSet.Combine Method

Combines this selection set with another selection set using the specified set operation.

[Visual Basic .NET]
Public Sub Combine ( _
    ByVal otherSet As ISelectionSet, _
    ByVal setOp As esriSetOperation, _
    ByRef resultSet As ISelectionSet _
)
[C#]
public void Combine (
    ISelectionSet otherSet,
    esriSetOperation setOp,
    ref ISelectionSet resultSet
);
[C++]
HRESULT Combine(
  ISelectionSet* otherSet,
  esriSetOperation setOp,
  ISelectionSet** resultSet
);
[C++]

Parameters otherSet [in]
otherSet is a parameter of type ISelectionSet setOp [in]
setOp is a parameter of type esriSetOperation resultSet [out]
resultSet is a parameter of type ISelectionSet

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Used to combine to SelectionSets.  The resultSet parameter must be a third selection set and not any of the ones that are combined. For example, if you want to combine A and B and put the result in A, you must combine A and B into C, and then set A to C.

To combine two selection sets, the sets must be derived from the same table or feature class. Attempting to combine selection sets from different datasets will raise an error.

See Also

ISelectionSet Interface