MapGuide API Reference
|
virtual void MgResourceService::RenameResourceData | ( | MgResourceIdentifier * | resource, |
CREFSTRING | oldDataName, | ||
CREFSTRING | newDataName, | ||
bool | overwrite | ||
) | [pure virtual] |
Renames resource data for the specified resource.
virtual void RenameResourceData(MgResourceIdentifier resource, string oldDataName, string newDataName, bool overwrite); |
virtual void RenameResourceData(MgResourceIdentifier resource, String oldDataName, String newDataName, boolean overwrite); |
virtual void RenameResourceData(MgResourceIdentifier resource, string oldDataName, string newDataName, bool overwrite); |
resource | (MgResourceIdentifier) The resource for which the resource data will be renamed. |
oldDataName | (String/string) Old data name. |
newDataName | (String/string) New data name. |
overwrite | (boolean/bool) Flag to determine whether or not the destination resource data should be overwritten if it exists. |
// Assuming that $resourceService has already been initialized $resourceID = new MgResourceIdentifier("Library://Geography/Calgary points of interest.FeatureSource"); $resourceService->RenameResourceData($resourceID, "locations of points of interest", "locations of historical sites", true);
MgInvalidRepositoryTypeException | |
MgInvalidResourceTypeException | |
MgInvalidResourceDataTypeException | |
MgResourceDataNotFoundException | |
MgDuplicateResourceDataException |