Web API Reference MapGuide Open Source
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"


Comments or suggestions? Send us feedback.