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