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


ILayerFile.ReplaceContents Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILayerFile Interface > ILayerFile.ReplaceContents Method
ArcGIS Developer Help

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