AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

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

Gets the header associated with the specified resource.

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