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::Validate | ( |  | ) | `[virtual]`
Validates the resource identifier. This method should be called after the identifier has been fully specified by constructor and/or Set methods. Remarks: This checks that the syntax of the identifier is correct. It does not check that the specified resource actually exists. .NET Syntax
`virtual void Validate();`
Java Syntax
`virtual void Validate();`
PHP Syntax
`virtual void Validate();`
Returns: Returns nothing. Example (PHP)
     // Assuming $newResourceID has already been created
     $newResourceID->Validate();
  Exceptions:
  | MgInvalidRepositoryTypeException |
  | MgInvalidRepositoryNameException |
  | MgInvalidResourcePathException |
  | MgInvalidResourceNameException |
  | MgInvalidResourceTypeException |

Comments or suggestions? Send us feedback.