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 > INALayer2 Interface > INALayer2.CopyContext Method (ArcObjects .NET 10.5 SDK) |
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
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.