MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
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.