AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

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

Enumerates the resource data for the specified resource.

.NET Syntax
virtual MgByteReader EnumerateResourceData(MgResourceIdentifier resource);
Java Syntax
virtual MgByteReader EnumerateResourceData(MgResourceIdentifier resource);
PHP Syntax
virtual MgByteReader EnumerateResourceData(MgResourceIdentifier resource);

Parameters:
resource (MgResourceIdentifier) The resource for which the resource data will be listed.
Returns:
Returns an MgByteReader object representing the description of the resource data in XML format using the ResourceDataList schema.
Example (PHP)
 // Assuming that $resourceService has already been initialized
 $resourceID = new MgResourceIdentifier("Library://Geography/Calgary points of interest.FeatureSource");
 $byteReader = $resourceService->EnumerateResourceData($resourceID);
 echo $byteReader->ToString();
 /* Returns for example:
 <?xml version="1.0" encoding="UTF-8"?>
 <ResourceDataList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ResourceDataList-1.0.0.xsd">
 <ResourceData>
     <Name>locations of points of interest</Name>
     <Type>File</Type>
 </ResourceData>
 </ResourceDataList>
 */

Exceptions:
MgInvalidResourceTypeException 
See also:
SetResourceData

GetResourceData

RenameResourceData

DeleteResourceData