Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

ApplyResourcePackage
ChangeResourceOwner
CopyResource
DeleteResource
DeleteResourceData
EnumerateReferences
EnumerateResourceData
EnumerateResources
EnumerateResources
EnumerateUnmanagedData
GetRepositoryContent
GetRepositoryHeader
GetResourceContent
GetResourceData
GetResourceHeader
InheritPermissionsFrom
MoveResource
RenameResourceData
ResourceExists
SetResource
SetResourceData
UpdateRepository
virtual MgByteReader* MgResourceService::GetRepositoryContent | ( | MgResourceIdentifier * | resource | ) | `[pure virtual]`
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 |

Comments or suggestions? Send us feedback.