Hosted Exchange::GetAvailablePlans
This procedure retrieves the plans that are defined as available for a specified organization.
Arguments
Input Arguments | Required | Description |
---|---|---|
ldapPath |
Yes |
LDAP path of user object to modify. |
preferredDomainController |
Yes |
The name of the preferred domain controller. |
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 | Description |
---|---|
<servicePlans>/<plan> |
Collection containing plan details for plans available to an organization. |
Remarks
Method Syntax
public string GetAvailablePlans(
string ldapPath,
string preferredDomainController)
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.GetAvailablePlans(ldapPath, 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::RemoveAvailablePlans