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::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");

Comments or suggestions? Send us feedback.