AcMapResourceService::SetResource Method

Autodesk GIS Map Platform

AcMapResourceService:: SetResource Method

Adds a new resource into AutoCAD Map 3D, or updates an existing resource.

virtual void SetResource(
    MgResourceIdentifier* resource, 
    MgByteReader* content, 
    MgByteReader* header
);
Parameters 
Description 
resource 
The identifier of the resource to be set. 
content 
The resource content in XML format using the schema appropriate for the resource type. Or when updating an existing resource, this can be set to null, in which case the content is not changed.  
header 
The resource header in XML format. This uses ResourceFolderHeader_schema for folder resources and ResourceDocumentHeader for all other resources. Or, if you are updating an existing resource in the library, this can be set to null, in which case the permissions are set to be inherited from the parent folder.  
Remarks

MgXX classes belong to the OsGeo.MapGuide namespace and are descibed in the Geospatial Platform Reference.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].