MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual STRING MgResourceIdentifier::GetName ( ) [virtual]

Extracts the resource's name from the resource identifier.

.NET Syntax
virtual string GetName();
Java Syntax
virtual String GetName();
PHP Syntax
virtual string GetName();
Returns:
Returns the resource name.
Example (PHP)
 $resourceID = new MgResourceIdentifier("Library://Geography/World.MapDefinition");
 $name = $resourceID->GetName();  // returns: "World"