This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineSnapEnvironment Interface > IEngineSnapEnvironment.AddSnapAgent Method (ArcObjects .NET 10.4 SDK) |
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
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.