Web API Reference MapGuide Open Source

void MgLayerCollection::Remove MgLayer value  ) 
 

Removes a layer from the collection.

.Net Syntax
void Remove(MgLayer value);
Java Syntax
void Remove(MgLayer value);
PHP Syntax
void Remove(MgLayer value);

Parameters:
value (MgLayer) Layer to be removed.
Returns:
Returns nothing.
Exceptions:
MgInvalidAgumentException if the layer does not exist within the collection.