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
public void PreserveEnabledValues {set;}
HRESULT put_PreserveEnabledValues(


[in]    is a parameter of type VARIANT_BOOL

Product Availability

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


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