AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual void MgResourceIdentifier::SetName ( CREFSTRING  name  )  [virtual]

Set the resource name

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.
After you have finished calling SetName, SetPath, SetRepositoryName, and SetRepositoryType, call Validate to make sure the identifier is syntactically correct.
.NET Syntax
virtual void SetName(string name);
Java Syntax
virtual void SetName(String name);
PHP Syntax
virtual void SetName(string name);

Parameters:
name (String/string) Resource name. It can contain spaces but cannot contain any of the characters *:|?<’&”>=
Returns:
Returns nothing.
Example (PHP)
 // Assuming $newResourceID has already been created
 $newResourceID->SetName("Atlas");
 $newResourceID->Validate();