AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual void MgResourceIdentifier::SetResourceType ( CREFSTRING  type  )  [virtual]

Sets the resource type.

Remarks:
This method is designed to be used to construct identifiers for new resources. Do not use this to try to rename an existing resource. Use MoveResource instead.
.NET Syntax
virtual void SetResourceType(string type);
Java Syntax
virtual void SetResourceType(String type);
PHP Syntax
virtual void SetResourceType(string type);

Parameters:
type (String/string) Resource type string as defined in MgResourceType . It is case sensitive.
Returns:
Returns nothing.
Example (PHP)
 // Assuming $newResourceID has already been created
 $newResourceID->SetResourceType("MapDefinition");