Method Syntax
The ModifyOrganizationUsers method uses the following
syntax:
public string ModifyOrganizationUsers(
string path,
string preferredDomainController,
string homeServerPool,
string federationEnabled,
string internetAccessEnabled,
string archivingEnabled,
bool sendCredentials)
Typical C# Usage
Typical usage for the ModifyOrganizationUsers method is as
follows:
//Get user name and password.
string userName = this.Request.ServerVariables.Get("AUTH_USER");
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD");
//Set credentials.
LiveCommunication.PreAuthenticate = true;
LiveCommunication.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = LiveCommunication.ModifyOrganizationUsers(path, preferredDomainController, homeServerPool, federationEnabled, internetAccessEnabled, archivingEnabled, sendCredentials);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;