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::GetResourceHeader | ( | MgResourceIdentifier * | resource | ) | `[pure virtual]`
Gets the header associated with the specified resource. .NET Syntax
`virtual MgByteReader GetResourceHeader(MgResourceIdentifier resource);`
Java Syntax
`virtual MgByteReader GetResourceHeader(MgResourceIdentifier resource);`
PHP Syntax
`virtual MgByteReader GetResourceHeader(MgResourceIdentifier resource);`
  Parameters:
  | resource | (MgResourceIdentifier) Resource to get the header for.
Returns: Returns an MgByteReader object containing the resource header in XML format using the ResourceDocumentHeader schema. Example (PHP)
     // Assuming $resourceService has already been initialized
     $resourceID = new MgResourceIdentifier("Library://Geography/World.MapDefinition");
     $byteReader = $resourceService->GetResourceHeader($resourceID);
  Exceptions:
  | MgInvalidResourceTypeException |
See also: SetResource

Comments or suggestions? Send us feedback.