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


ILocatedNetworkTrafficValue.GetTrafficValue Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILocatedNetworkTrafficValue Interface > ILocatedNetworkTrafficValue.GetTrafficValue Method
ArcGIS Developer Help

ILocatedNetworkTrafficValue.GetTrafficValue Method

Retrieves the traffic speed ratio and traffic support status for the specified direction of the current element id.

[Visual Basic .NET]
Public Sub GetTrafficValue ( _
    ByVal direction As esriNetworkEdgeDirection, _
    ByRef supportsTraffic As Boolean, _
    ByRef supportsRealTimeValue As Boolean, _
    ByRef hasRealTimeValue As Boolean, _
    ByRef attributeValueRatio As Double _
)
[C#]
public void GetTrafficValue (
    esriNetworkEdgeDirection direction,
    ref bool supportsTraffic,
    ref bool supportsRealTimeValue,
    ref bool hasRealTimeValue,
    ref double attributeValueRatio
);
[C++]
HRESULT GetTrafficValue(
  esriNetworkEdgeDirection direction,
  Boolean* supportsTraffic,
  Boolean* supportsRealTimeValue,
  Boolean* hasRealTimeValue,
  System.Double* attributeValueRatio
);
[C++]
Parameters
direction [in]

direction is a parameter of type esriNetworkEdgeDirection supportsTraffic [out]
supportsTraffic is a parameter of type bool* supportsRealTimeValue [out]
supportsRealTimeValue is a parameter of type bool* hasRealTimeValue [out]
hasRealTimeValue is a parameter of type bool* attributeValueRatio [out]
attributeValueRatio is a parameter of type double*

Product Availability

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

See Also

ILocatedNetworkTrafficValue Interface