ArcObjects Library Reference (NetworkAnalyst)  

INAResult2.Create Method

Set up for a new analysis.

[Visual Basic .NET]
Public Sub Create ( _
    ByVal Name As String, _
    ByVal NAContextHelper As INAContextHelper, _
    ByVal isScratch As Boolean _
)
[C#]
public void Create (
    string Name,
    INAContextHelper NAContextHelper,
    bool isScratch
);
[C++]
HRESULT Create(
  BSTR Name,
  INAContextHelper* NAContextHelper,
  VARIANT_BOOL isScratch
);
[C++]

Parameters

Name [in]   Name is a parameter of type BSTR NAContextHelper [in]

  NAContextHelper is a parameter of type INAContextHelper

isScratch [in]   isScratch is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

The method Create is called by the solver when it creates a new result object.

The isScratch parameter specifies if the result feature classes should be kept in memory (false) or saved on disk (true).

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. 

 

This method should be called instead of INAResult.Initialize.

See Also

INAResult2 Interface