Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes a membership for the specified account name.
Namespace: [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/RemoveMembership", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", _
ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub RemoveMembership ( _
accountName As String, _
sourceInternal As Guid, _
sourceReference As String _
)
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim sourceInternal As Guid
Dim sourceReference As String
instance.RemoveMembership(accountName, _
sourceInternal, sourceReference)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/RemoveMembership", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void RemoveMembership(
string accountName,
Guid sourceInternal,
string sourceReference
)
Parameters
accountName
Type: System.StringThe account name of the user.
sourceInternal
Type: System.GuidThe GUID for the member group for which the membership is removed.
sourceReference
Type: System.StringThe unique reference for the member group of the membership to be removed.
Exceptions
Exception | Condition |
---|---|
SoapException | The membership cannot be removed. |
Remarks
This method deletes the membership from the member group specified by the sourceInternal and sourceReference parameters for the specified user.