ArcObjects Library Reference (NetworkAnalyst)  

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(
  VARIANT_BOOL enabled
);
[C++]

Parameters

enabled [out, retval]   enabled is a parameter of type VARIANT_BOOL enabled [in]   enabled is a parameter of type VARIANT_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