AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgByteReader* MgResourceService::GetResourceMetadata ( MgResourceIdentifier resource  )  [virtual]

Gets the Metadata content of a resource.

.NET Syntax
MgByteReader GetResourceMetadata(MgResourceIdentifier resource);
Java Syntax
MgByteReader GetResourceMetadata(MgResourceIdentifier resource);
PHP Syntax
MgByteReader GetResourceMetadata(MgResourceIdentifier resource);

Parameters:
resource (MgResourceIdentifier) The resource in the repository which has metadata attached to it. Note the resource has to exist else this method fails.
Returns:
The metadata content in XML format. This can null in which case the resource has no metadata attached. The schema of the Content is user driven and not given. Most people will use it for FGDC or ISO Metadata.
Exceptions:
MgInvalidResourceTypeException 
See also:
SetResourceMetadata