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


INetworkAttribute2.UseByDefault Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkAttribute2.UseByDefault Property

Indicates if this network attribute is to be used by default.

[Visual Basic .NET]
Public Property UseByDefault As Boolean
[C#]
public bool UseByDefault {get; set;}
[C++]
HRESULT get_UseByDefault(
  VARIANT_BOOL* UseByDefault
);
[C++]
HRESULT put_UseByDefault(
  VARIANT_BOOL UseByDefault
);
[C++]

Parameters UseByDefault [out, retval] UseByDefault is a parameter of type VARIANT_BOOL UseByDefault [in] UseByDefault is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

If the UseByDefault property is set to True for a NetworkAttribute, the network attribute will automatically be set as an option (e.g., impedance, restriction, hierarchy) when a new network analysis layer is created in ArcMap.

See Also

INetworkAttribute2 Interface