Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

GetName
GetPath
GetRepositoryName
GetRepositoryType
GetResourceType
MgResourceIdentifier
SetName
SetPath
SetRepositoryName
SetRepositoryType
SetResourceType
ToString
Validate
virtual void MgResourceIdentifier::SetPath | ( | CREFSTRING | path | ) | `[virtual]`
Set the resource path within the repository. Remarks: This method is designed to be used to construct identifiers for new resources. Do not use this to try to move 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 SetPath(string path);`
Java Syntax
`virtual void SetPath(String path);`
PHP Syntax
`virtual void SetPath(string path);`
  Parameters:
  | path | (String/string) Resource path within the repository. It can contain spaces but cannot contain any of the characters *:|?<'&">= Do not include the repository part of the identifier (for example, `Library://`). Do not include the trailing slash.
Returns: Returns nothing. Example (PHP)
     // Assuming $newResourceID has already been created
     $newResourceID->SetPath("North America/Maps");
     $newResourceID->Validate();

Comments or suggestions? Send us feedback.