Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

# MgSiteConnection Class Reference
[MgSiteConnection]

Inherits MgGuardDisposable.

List of all members.

## Public Member Functions
MgService * | CreateService (INT32 serviceType)
| Returns a new instance of the specified service from the site. A connection to the machine hosting the service will be created if required. Configuration information determines whether the service is hosted locally or not. The configuration information is stored in a file named webconfig.ini which is located in the same folder as the map agent. The parameters in this file can be modified using the web administration application.
MgSite * | GetSite ()
| Returns an instance of the MgSite object. This object is responsible for user/group management and session management. MgSite exposes functionality to enumerate users and groups and to manage user sessions. The connection must already be open to obtain access to the site.
| MgSiteConnection ()
| Creates a site connection. The local site defined for the web tier or server is used.
void | Open (MgUserInformation *userInformation)
| Establishes a connection to a site.

Comments or suggestions? Send us feedback.