Web API Reference MapGuide Open Source

bool MgLayerCollection::Contains CREFSTRING  name  ) 
 

Determines if the collection contains the specified layer.

.Net Syntax
bool Contains(string name);
Java Syntax
boolean Contains(String name);
PHP Syntax
bool Contains(string name);

Parameters:
name (String/string) Name of the layer to search for.
Returns:
Returns true if the collection contains the specified item, or false otherwise.