AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual void MgResourceService::DeleteResourceData ( MgResourceIdentifier resource,
CREFSTRING  dataName 
) [pure virtual]

Deletes resource data from the specified resource.

.NET Syntax
virtual void DeleteResourceData(MgResourceIdentifier resource, string dataName);
Java Syntax
virtual void DeleteResourceData(MgResourceIdentifier resource, String dataName);
PHP Syntax
virtual void DeleteResourceData(MgResourceIdentifier resource, string dataName);

Parameters:
resource (MgResourceIdentifier) The resource for which the resource data will be deleted.
dataName (String/string) Name for data.
Returns:
Returns nothing.
Example (PHP)
 // Assuming that $resourceService has already been initialized
 $resourceID = new MgResourceIdentifier("Library://Geography/Calgary points of interest.FeatureSource");
 $resourceService->DeleteResourceData($resourceID, "locations of historical sites");

Exceptions:
MgInvalidResourceTypeException 
See also:
SetResourceData

EnumerateResourceData

GetResourceData

RenameResourceData