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.