ArcObjects Library Reference (NetworkAnalyst)  

INAResult2.InitializeEx Method

Provides the result object with a reference to the context.

[Visual Basic .NET]
Public Sub InitializeEx ( _
    ByVal NAContextHelper As INAContextHelper _
)
[C#]
public void InitializeEx (
    INAContextHelper NAContextHelper
);
[C++]
HRESULT InitializeEx(
  INAContextHelper* NAContextHelper
);
[C++]

Parameters

NAContextHelper [in]

  NAContextHelper is a parameter of type INAContextHelper

Product Availability

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

Remarks

The InitializeEx method is called after the result object has been deserialized as part of the NAContext being loaded.  It is called to pass to the result object a backpointer reference to the NAContext that it's bound to.

The NAContextHelper object passed in is used to get back to the NAContext.  You can maintain a strong reference to the NAContextHelper object within your custom result object, but do not hold onto a strong reference to the NAContext itself as this will create a circular reference. 

See Also

INAResult2 Interface