MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual void MgLayerBase::SetName ( CREFSTRING  name) [virtual]

Sets the name of the layer.

Remarks:
The name must be unique in MgMapBase. An exception will be thrown when this layer is added to MgMapBase if the name already exists.
.NET Syntax
void SetName(string name);
Java Syntax
void SetName(String name);
PHP Syntax
void SetName(string name);
Parameters:
name(String/string) Layer name.