MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends

Enumerates only the ePlot sections (sheets) in a DWF.

.NET Syntax
virtual MgByteReader EnumerateSections(MgResourceIdentifier resource);
Java Syntax
virtual MgByteReader EnumerateSections(MgResourceIdentifier resource);
PHP Syntax
virtual MgByteReader EnumerateSections(MgResourceIdentifier resource);
Parameters:
resource(MgResourceIdentifier) Resource identifier specifying the drawing source which has the DWF resource data.
Returns:
Returns an MgByteReader object containing the list of sections in XML format using the DrawingSectionList schema. The sections are sorted in ascending order based on their plotOrder attribute.
Example (PHP)
 // Assuming the drawing service has already been initialized
 $drawing_ID = new MgResourceIdentifier('Library://DrawingService/Floorplan.DrawingSource');
 $byteReader = $drawingService->EnumerateSections($drawing_ID);
Exceptions:
MgNullReferenceExceptionno data could be read from the DWF resource.
MgServiceNotAvailableExceptionif the underlying resource service cannot be obtained to access the drawing in the resource repository.
MgXmlParserExceptionif there are problems parsing the resource content specified by the resource identifier.
MgInvalidDwfPackageExceptionif the DWF specified by the resource identifier is not a DWF of version 6.0 or greater.
MgDwfExceptionif the DWF component encounters errors.
Note:
See MgResourceService for additional exceptions.