This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAResult2 Interface > INAResult2.Create Method (ArcObjects .NET 10.5 SDK) |
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
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.