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


INALayer2.CopyContext Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INALayer2.CopyContext Method

Returns a copy of the NAContext referenced by the NALayer.

[Visual Basic .NET]
Public Function CopyContext ( _
) As INAContext
[C#]
public INAContext CopyContext (
);
[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