AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

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"