Hosted Exchange::RemoveAvailablePlans
This procedure removes service plans from the list of available plans for an organization.
Arguments
Input Argument | Required | Description |
---|---|---|
<path> |
Yes |
LDAP path of the organization. |
<preferredDomainController> |
Yes |
|
<availablePlansXmlString>/<planName> |
Yes |
One or more valid plan names to remove from the list of available plans for the organization. |
Optional Input Arguments
The following properties can be passed in as an XML fragment string in the following format:
<properties>
<property name="l">Some City</property>
<property name="st">Washington</property>
</properties>
Output Arguments
None.
Remarks
Method Syntax
public string RemoveAvailablePlans(
string ldapPath,
string availablePlansXmlString,
string preferredDomainController,
bool sendCredentials)
Sample Code
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.
hostedExch.PreAuthenticate = true;
hostedExch.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = hostedExch. RemoveAvailablePlans(ldapPath, availablePlansXmlString, preferredDomainController
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;
Applies To
Hosted Exchange Web Service for:
Hosted Messaging and Collaboration version 3.5
Hosted Messaging and Collaboration version 3.0
See also
Tasks
Hosted Exchange::AddAvailablePlans
Hosted Exchange::GetAvailablePlans
Hosted Exchange::GetPlanDetail
Hosted Exchange::GetPlans
Hosted Exchange::RemoveAvailablePlans