INetworkAttribute Interface

Provides access to members that specify the properties of an attribute in a network dataset.

Members

Name Description
Read/write property DataType Type of data used in this network attribute.
Read-only property ID Unique identifier of this network attribute.
Read-only property IsTimeAware Indicates if the network attribute is time aware.
Read/write property Name Name of this network attribute.
Read/write property Parameters Array of parameters for this network attribute.
Method Refresh Refresh the network evaluators assigned to this network attribute.
Read/write property Units Units of this network attribute.
Read/write property UsageType Usage type of this network attribute.
Read/write property UseByDefault Indicates if this network attribute is to be used by default.

INetworkAttribute.DataType Property

Type of data used in this network attribute.

Public Property DataType As esriNetworkAttributeDataType
public esriNetworkAttributeDataType DataType {get; set;}

Remarks

The DataType for the network attribute can be either Integer, Float, Double, or Boolean.

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

INetworkAttribute.ID Property

Unique identifier of this network attribute.

Public ReadOnly Property ID As Integer
public int ID {get;}

INetworkAttribute.IsTimeAware Property

Indicates if the network attribute is time aware.

Public Function get_IsTimeAware ( _
    ByVal ElementType As esriNetworkElementType _
) As Boolean
public bool get_IsTimeAware (
    esriNetworkElementType ElementType
);

INetworkAttribute.Name Property

Name of this network attribute.

Public Property Name As String
public string Name {get; set;}

INetworkAttribute.Parameters Property

Array of parameters for this network attribute.

Public Property Parameters As IArray
public IArray Parameters {get; set;}

INetworkAttribute.Refresh Method

Refresh the network evaluators assigned to this network attribute.

Public Sub Refresh ( _
)
public void Refresh (
);

INetworkAttribute.Units Property

Units of this network attribute.

Public Property Units As esriNetworkAttributeUnits
public esriNetworkAttributeUnits Units {get; set;}

Remarks

If the attribute is not measured in units of distance or time, specify the Units as esriNAUUnknown.

INetworkAttribute.UsageType Property

Usage type of this network attribute.

Public Property UsageType As esriNetworkAttributeUsageType
public esriNetworkAttributeUsageType UsageType {get; set;}

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

INetworkAttribute.UseByDefault Property

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

Public Property UseByDefault As Boolean
public bool UseByDefault {get; set;}

Classes that implement INetworkAttribute

Classes Description
EvaluatedNetworkAttribute A container for describing a network dataset attribute and its evaluators.

Remarks

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.