AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

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

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

Parameters:
type (String/string) Repository type string. Legal repository types are defined in MgRepositoryType .
Returns:
Returns nothing.
Examples (PHP)
 // Assuming $newResourceID has already been created
 $newResourceID->SetRepositoryType("Library");
 $newResourceID->Validate();
or
 $newResourceID->SetRepositoryType("Session");
 $newResourceID->Validate();