AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual STRING MgResourceIdentifier::GetRepositoryType (  )  [virtual]

Extracts the repository type from a resource's identifier.

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

Returns:
Returns the repository type. Legal repository types are defined in MgRepositoryType ,
Examples (PHP)
 $resourceID = new MgResourceIdentifier("Library://Geography/World.MapDefinition");
 $repository_type = $resourceID->GetRepositoryType();    // returns: "Library"

 $resourceID = new MgResourceIdentifier("Session:$sessionID//Geography/World.MapDefinition");
 $repository_type = $resourceID->GetRepositoryType();    // returns: "Session"