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


ILayerFile.ReplaceContents Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ILayerFile.ReplaceContents Method

Replace the contents of the layer file.

[Visual Basic .NET]
Public Sub ReplaceContents ( _
    ByVal pLayer As ILayer _
)
[C#]
public void ReplaceContents (
    ILayer pLayer
);
[C++]
HRESULT ReplaceContents(
  ILayer* pLayer
);
[C++]

Parameters pLayer [in]
pLayer is a parameter of type ILayer

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

ILayerFile Interface

.NET Snippets

Save Layer To File

.NET Related Topics

How to setup, solve, and save a network analysis problem