Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

CreateService
GetSite
MgSiteConnection
Open
void MgSiteConnection::Open | ( | MgUserInformation * | userInformation | ) |
Establishes a connection to a site. .NET Syntax
`void Open(MgUserInformation userInformation);`
Java Syntax
`void Open(MgUserInformation userInformation);`
PHP Syntax
`void Open(MgUserInformation userInformation);`
  Parameters:
  | userInformation | (MgUserInformation) User information to authenticate against. Can either be username/password or session identifier. User information also contains client locale. See MgUserInformation for details.
  Returns: Nothing Exceptions:
  | MgAuthenticationFailedException | if user information was not supplied
  | MgConfigurationException | if configuration information could not be loaded
  | MgUnauthorizedAccessException | if user is not authorized for site
  | MgConnectionFailedException | if site cannot be connected to

Comments or suggestions? Send us feedback.