Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

UserGroup.RemoveGroup method

Removes the specified group from the current site collection.

Namespace:  WebSvcUserGroup
Assembly:  STSSOAP (in STSSOAP.dll)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/directory/RemoveGroup", RequestNamespace = "http://schemas.microsoft.com/sharepoint/soap/directory/", 
	ResponseNamespace = "http://schemas.microsoft.com/sharepoint/soap/directory/", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void RemoveGroup(
	string groupName
)

Parameters

groupName
Type: System.String

A string that contains the name of the group.

The following code example removes the specified group from the current site collection.

Web_Reference_Folder_Name.UserGroup usrgrpService = new Web_Reference_Folder_Name.UserGroup();
usrgrpService.Credentials= System.Net.CredentialCache.DefaultCredentials;

usrgrpService.RemoveGroup("Group_Name");

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.