Share via


Managed Sharepoint Hosting::DeconfigureSharePointForDelegation

The DeconfigureSharePointForDelegation Web service removes configuration of a specified Windows SharePoint Services server for delegated administration.

Arguments

The DeconfigureSharePointForDelegation method requires the following input parameters.

Input Arguments Required Description

<serverName>

Yes

A string representing the name of the server. This can be a network basic input/output system (NetBIOS) name, a fully qualified domain name (FQDN), or an IP address.

<preferredDomainController>

Yes

The name of the preferred domain controller.

<sendCredentials>

Yes

True indicates that Basic Authentication credentials should be included with the request documented submitted to the MPS engine.

Method

public string DeconfigureSharePointForDelegation( 
string serverName,  
string preferredDomainController, 
bool sendCredentials 

Remarks

No remarks.

Sample Code

Typical Usage

//Get user name and password.  
string userName = this.Request.ServerVariables.Get("AUTH_USER"); 
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD"); 
//Set credentials. 
service.PreAuthenticate = true; 
service.Credentials = new NetworkCredential(userName,pass); 
lblMsg.InnerHtml = mpsResponseHeaderLabel; 
//Display response. 
this.mpsResponse.DocumentSource = ""; 
response = service.DeconfigureSharePointForDelegation (serverName, preferredDomainController, true); 
// set the response XML to match the return from MPF 
responseXml.LoadXml(response); 
this.mpsResponse.Document = responseXml; 
lblDone.InnerText = successMsg; 

Applies To

Managed Windows SharePoint Services Web Service for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Managed Sharepoint Hosting::ConfigureSharePointForDelegation