MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends

Gets the content for the specified repository.

.NET Syntax
virtual MgByteReader GetRepositoryContent(MgResourceIdentifier resource);
Java Syntax
virtual MgByteReader GetRepositoryContent(MgResourceIdentifier resource);
PHP Syntax
virtual MgByteReader GetRepositoryContent(MgResourceIdentifier resource);
Parameters:
resource(MgResourceIdentifier) Repository to get the content for.
Returns:
Returns an MgByteReader object containing the repository content in XML format using the RepositoryContent schema.
Example (PHP)
 // Assuming $resourceService has already been initialized.
 $resourceID = new MgResourceIdentifier("Library://");
 $byteReader = $resourceService->GetRepositoryContent($resourceID);
 echo $byteReader->ToString();
Exceptions:
MgRepositoryNotFoundException
MgInvalidRepositoryNameException
MgInvalidRepositoryTypeException