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


IEngineSnapEnvironment.AddSnapAgent Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineSnapEnvironment Interface > IEngineSnapEnvironment.AddSnapAgent Method
ArcGIS Developer Help

IEngineSnapEnvironment.AddSnapAgent Method

Adds a new snap agent to the snap environment.

[Visual Basic .NET]
Public Sub AddSnapAgent ( _
    ByVal SnapAgent As IEngineSnapAgent _
)
[C#]
public void AddSnapAgent (
    IEngineSnapAgent SnapAgent
);
[C++]
HRESULT AddSnapAgent(
  IEngineSnapAgent* SnapAgent
);
[C++]
Parameters
SnapAgent [in]

SnapAgent is a parameter of type IEngineSnapAgent*

Product Availability

Available with ArcGIS Engine.

Description

AddSnapAgent activates and adds to the snap environment any valid snap agent. Snap agents which have already been added are not changed by this method. Snap agents are identified by their SnapAgent.Name and GUID.

See Also

IEngineSnapEnvironment Interface

.NET Samples

Managing snap agents