Windows-based Hosting::DisablePlan

This procedure disables a plan.

Arguments

Input Argument

<preferredDomainController>

<planName>

<sendCredentials>

Output Arguments

MPS XML Response in string format:

<response> 
        <data> 
        </data> 
</response> 

Remarks

Method

public string DisablePlan( 
        string preferredDomainController 
        planName, 
        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.    
        WbH.PreAuthenticate = true; 
        WbH.Credentials = new NetworkCredential(userName,pass); 
        lblMsg.InnerHtml = mpsResponseHeaderLabel; 
 
        //Display response. 
        this.mpsResponse.DocumentSource = ""; 
response = WbH.DisablePlan(preferredDomainController, planName,true); 
 
        // set the response XML to match the return from MPF 
        responseXml.LoadXml(response); 
        this.mpsResponse.Document = responseXml; 
 

Applies To

Managed Windows-based Hosting Namespace API for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Windows-based Hosting::CreatePlan
Windows-based Hosting::EnablePlan
Windows-based Hosting::CreatePlan