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

ISelectionSet.Combine Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISelectionSet Interface > ISelectionSet.Combine Method
ArcGIS Developer Help

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 _
public void Combine (
    ISelectionSet otherSet,
    esriSetOperation setOp,
    ref ISelectionSet resultSet
HRESULT Combine(
  ISelectionSet* otherSet,
  esriSetOperation setOp,
  ISelectionSet** resultSet
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.


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