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


INetworkAttribute.UsageType Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

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 (Code Files: frmClosestFacilitySolver) | ArcGIS Network Analyst extension Engine application (Code Files: frmNALayerProperties) | Service area solver (Code Files: frmServiceAreaSolver) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Selection restriction evaluator (Code Files: SelectionRestrictionEvaluator) | Vehicle routing problem solver (Code Files: frmVRPSolver) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Subset network evaluators (Code Files: FilterSubsetEvaluator ScaleSubsetEvaluator)