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


INetworkAttribute2.UseByDefault Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkAttribute2 Interface > INetworkAttribute2.UseByDefault Property
ArcGIS Developer Help

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(
  Boolean* UseByDefault
);
[C++]
HRESULT put_UseByDefault(
  VARIANT_BOOL UseByDefault
);
[C++]
Parameters
UseByDefault [out, retval]

UseByDefault is a parameter of type bool* UseByDefault [in]
UseByDefault is a parameter of type 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