AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual STRING MgResourceIdentifier::GetPath (  )  [virtual]

Extracts the resource's path from the resource identifier.

.NET Syntax
virtual string GetPath();
Java Syntax
virtual String GetPath();
PHP Syntax
virtual string GetPath();

Returns:
Returns the resource's path.
Example (PHP)
 $resourceID = new MgResourceIdentifier("Library://Geography/World.MapDefinition");
 $path = $resourceID->GetPath();  // returns: "Geography"