AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual STRING MgResourceIdentifier::GetResourceType (  )  [virtual]

Extracts the resource's type from the resource identifier.

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

Returns:
Returns the resource's type string, as defined in MgResourceType.
Example (PHP)
 $resourceID = new MgResourceIdentifier("Library://Geography/World.MapDefinition");
 $type = $resourceID->GetResourceType();   // returns: "MapDefinition"