MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
MgLayerBase* MgLayerCollection::GetItem ( CREFSTRING  name)

Returns the layer with the specified name.

.NET Syntax
MgLayerBase GetItem(string name);
Java Syntax
MgLayerBase GetItem(String name);
PHP Syntax
MgLayerBase GetItem(string name);
Parameters:
name(String/string) Name of the layer to get.
Returns:
Returns the layer.
Exceptions:
MgObjectNotFoundExceptionif the name does not exist.