Exchange Resource Manager::QueryOrganizationsByMailstore
This procedure returns all of the organizations that have had Exchange resources allocated to them on a specified mail store.
Arguments
Input argument | Required | Description |
---|---|---|
mailStoreName |
No |
|
serverName |
No |
Server where the MailStore is located. |
preferredDomainController |
No |
|
sendCredentials |
No |
True if credentials will be included in the xml request. |
Remarks
Method Syntax
public string QueryOrganizationsByMailstore(
string mailStoreName,
string serverName,
string preferredDomainController,
bool sendCredentials)
Sample Code
Example XML Request
No example XML request.
Example XML Response
<response>
<data>
<organizations>
<organization>
<GUID>6FA8EE79F158F64F881EEAB3235D61A4</GUID>
<path>LDAP://OU=alpineskihouse,OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=com</path>
<megabytes>2290</megabytes>
</organization>
<organization>
<GUID>5793078D84C5D84188F8BDD0B07AB5E1</GUID>
<path>LDAP://OU=contoso,OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=com</path>
<megabytes>20</megabytes>
</organization>
</organizations>
</data>
</response>
Typical C# Usage
//Get user name and password.
string userName = this.Request.ServerVariables.Get("AUTH_USER");
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD");
//Set credentials.
ExchRM.PreAuthenticate = true;
ExchRM.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = ExchRM.QueryOrganizationsByMailstore(mailStoreName, serverName, preferredDomainController, sendCredentials);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;
Applies To
Web Services API for:
Hosted Messaging and Collaboration version 3.5
Hosted Messaging and Collaboration version 3.0
See also
Tasks
Exchange Resource Manager::QueryAllOrganizations
Exchange Resource Manager::QueryOrganizationsByPublicstore