Extracts the repository name from a resource's identifier.
.NET Syntax
Java Syntax
PHP Syntax
Example (PHP)
$resourceID = new MgResourceIdentifier("Session:$sessionID//Geography/World.MapDefinition"); $repository_name = $resourceID->GetRepositoryName(); // returns: "b9b617ac-ffff-ffff-8000-005056c00008_eng"
$resourceID = new MgResourceIdentifier("Library://Geography/World.MapDefinition"); $repository_name = $resourceID->GetRepositoryName(); // returns: ""
|