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


IDataSourceHelperLayer.ReplaceName Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IDataSourceHelperLayer.ReplaceName Method

Replaces the layer's IName with the given IName.

[Visual Basic .NET]
Public Sub ReplaceName ( _
    ByVal pLayer As ILayer, _
    ByVal pName As IName, _
    ByVal validate As Boolean _
)
[C#]
public void ReplaceName (
    ILayer pLayer,
    IName pName,
    bool validate
);
[C++]
HRESULT ReplaceName(
  ILayer* pLayer,
  IName* pName,
  VARIANT_BOOL validate
);
[C++]

Parameters pLayer [in]
pLayer is a parameter of type ILayer pName [in]
pName is a parameter of type IName validate [in] validate is a parameter of type VARIANT_BOOL

Product Availability

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

See Also

IDataSourceHelperLayer Interface