ArcObjects Library Reference  (NetworkAnalyst)    

INALayer2.CopyContext Method

Returns a copy of the NAContext referenced by the NALayer.

[Visual Basic 6.0]
Function CopyContext As INAContext
[Visual Basic .NET]
Public Function CopyContext ( _
) As INAContext
[C#]
public INAContext CopyContext (
);
[Java]
public INAContext copyContext (
)
throws
    IOException,
    AutomationException
[C++]
HRESULT CopyContext(
  INAContext** NAContext
);
[C++]

Parameters

NAContext [out, retval]

  NAContext is a parameter of type INAContext

Product Availability

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

Remarks

CopyContext makes a copy of the NALayer's NAContext that can later be re-applied to the NALayer.  This method should only be used in conjunction with the AttachContext within Server or Engine applications. 

See Also

INALayer2 Interface

 


Feedback Send feedback on this page