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


INAResult.OutputProperties Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INAResult.OutputProperties Property

The properties of the output.

[Visual Basic .NET]
Public ReadOnly Property OutputProperties As IPropertySet
[C#]
public IPropertySet OutputProperties {get;}
[C++]
HRESULT get_OutputProperties(
  IPropertySet** propSet
);
[C++]

Parameters propSet [out, retval]
propSet is a parameter of type IPropertySet

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

The OutputProperties property returns a PropertySet that may contain information about the results of the network analysis. 

The contents of the property set is up to the individual solver.  For the solvers that ESRI has released, HasGapsInEdgeCumulativeImpedances returns True if there are impedance values on the junction elements that were traversed.  This is important because measures are not generated on the resulting polyline feature class (Route, CFLines, SALines) in this case. 

Closest Facility:

HasGapsInEdgeCumulativeImpedances         True/False

 

Route:

HasGapsInEdgeCumulativeImpedances         True/False

 

Service Area:

HasGapsInEdgeCumulativeImpedances         True/False
TravelDirection             TRAVEL_FROM/TRAVEL_TO

 

Origin Destination Cost Matrix:

** No TraversalResult generated

[C#]

The following C# code shows how you can access the OutputProperties.

public void GetResults(INALayer naLayer)
{
    IPropertySet propertySet=naLayer.Context.Result.OutputProperties;
    object names;
    object values;
    propertySet.GetAllProperties(out names, out values);
    for (int i=0; i < propertySet.Count; i++)
    {
        Console.WriteLine("{0}={1}", ((string[])names)[i], ((object[])values)[i]);
    }
}
[Visual Basic .NET]

The following VB.NET code shows how you can access the OutputProperties.

Public Sub GetResults(ByVal naLayer As INALayer)
    Dim propertySet As IPropertySet=naLayer.Context.Result.OutputProperties
    Dim names As Object
    Dim values As Object
    propertySet.GetAllProperties(names, values)
    Dim i As Integer
    For i=0 To propertySet.Count - 1 Step i + 1
        Console.WriteLine("{0}={1}", (CType(names, String()))(i), (CType(values, Object()))(i))
    Next
End Sub

See Also

INAResult Interface