This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDataSourceHelperLayer Interface > IDataSourceHelperLayer.ReplaceName Method (ArcObjects .NET 10.4 SDK) |
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