MapGuide API Reference
|
virtual void MgResourceIdentifier::SetRepositoryType | ( | CREFSTRING | type | ) | [virtual] |
Sets the repository type.
virtual void SetRepositoryType(string type); |
virtual void SetRepositoryType(String type); |
virtual void SetRepositoryType(string type); |
type | (String/string) Repository type string. Legal repository types are defined in MgRepositoryType . |
// Assuming $newResourceID has already been created $newResourceID->SetRepositoryType("Library"); $newResourceID->Validate();
or
$newResourceID->SetRepositoryType("Session");
$newResourceID->Validate();