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


INALayer2.CopyContext Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INALayer2 Interface > INALayer2.CopyContext Method
ArcGIS Developer Help

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(
void
);

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