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


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

INetworkAttribute.UsageType Property

Usage type of this network attribute.

[Visual Basic .NET]
Public Property UsageType As esriNetworkAttributeUsageType
[C#]
public esriNetworkAttributeUsageType UsageType {get; set;}
[C++]
HRESULT get_UsageType(
  esriNetworkAttributeUsageType* UsageType
);
[C++]
HRESULT put_UsageType(
  esriNetworkAttributeUsageType UsageType
);
[C++]
Parameters
UsageType [out, retval]

UsageType is a parameter of type esriNetworkAttributeUsageType* UsageType [in]
UsageType is a parameter of type esriNetworkAttributeUsageType

Product Availability

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

Remarks

The UsageType for the network attribute can be either Cost, Descriptor, Restriction, or Hierarchy.

Depending on the UsageType for the network attribute, only certain DataTypes are allowed:

UsageType: Allowed DataTypes:
esriNAUTCost esriNADTInteger, esriNADTFloat, esriNADTDouble
esriNAUTDescriptor esriNADTInteger, esriNADTFloat, esriNADTDouble, esriNADTBoolean
esriNAUTRestriction esriNADTBoolean
esriNAUTHierarchy esriNADTInteger

See Also

INetworkAttribute Interface

.NET Samples

Closest facility solver Location-allocation solver ArcGIS Network Analyst extension Engine application Origin-destination cost matrix solver Selection restriction evaluator Service area solver Subset network evaluators Subset network evaluators Vehicle routing problem solver