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


INAClassLoader2.SnapToNetwork Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAClassLoader2 Interface > INAClassLoader2.SnapToNetwork Property
ArcGIS Developer Help

INAClassLoader2.SnapToNetwork Property

Indicates if the geometry should be snapped to the network.

[Visual Basic .NET]
Public Property SnapToNetwork As Boolean
[C#]
public bool SnapToNetwork {get; set;}
[C++]
HRESULT get_SnapToNetwork(
  VARIANT_BOOL enabled
);
[C++]
HRESULT put_SnapToNetwork(
  Boolean* enabled
);
[C++]
Parameters
enabled [in]

enabled is a parameter of type bool enabled [out, retval]
enabled is a parameter of type bool*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

SnapToNetwork specifies if the network location's geometry should be snapped to where it lies on the network dataset during load.

Specify the SnapOffsetDistance and SnapOffsetUnits if you want the network location offset a fixed difference from the true snap location.  This is useful if you care about the side of the road the network location is on.

See Also

INAClassLoader2 Interface