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


IDataSourceHelperLayer.ReplaceName Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDataSourceHelperLayer Interface > IDataSourceHelperLayer.ReplaceName Method
ArcGIS Developer Help

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 bool

Product Availability

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

See Also

IDataSourceHelperLayer Interface