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


INetworkLoader2.PreserveEnabledValues Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalysis)  

INetworkLoader2.PreserveEnabledValues Property

Indicates if the Network Loader should preserve the values in the existing Enabled fields.

[Visual Basic .NET]
Public WriteOnly Property PreserveEnabledValues
[C#]
public void PreserveEnabledValues {set;}
[C++]
HRESULT put_PreserveEnabledValues(
  VARIANT_BOOL 
);
[C++]

Parameters [in] is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

If an existing field is specified as the enabled/disabled field for any feature class (see PutEnabledDisabledFieldName), then the PreserveEnabledValues property will determine which features are enabled and which are disabled when the network is built.

If PreserveEnabledValues is set to False, then the current values in the enabled/disabled fields will be disregarded and overwritten with the value of True.  The geometric network will be built with all its elements initially enabled.

If PreserveEnabledValues is set to True, then the valid values in the enabled/disabled fields will be preserved. Values in the enabled/disabled fields are valid if they have a value of either 0 (False) or 1 (True). Other values are invalid and will be overwritten with the value of 1 (True). After the network is built, each network feature will be either enabled or disabled, based on the value in the enabled/disabled field.

The default value of the PreserveEnabledValues property is false.  If the value is not explicitely set as True, all values in the enabled field will be overwritten with True.

See Also

INetworkLoader2 Interface

.NET Related Topics

Creating geometric networks within a geodatabase