AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgByteReader* MgResourceService::GetRepositoryContent ( MgResourceIdentifier resource  )  [pure virtual]

Gets the content for the specified repository.

Note:
This is not valid with AutoCAD Map 3D. It works with MapGuide only.
.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