UserProfileService.RemoveMembership Method
Removes a membership for the specified account name.
Namespace: websvcUserProfileService
Assembly: MOSSSOAP (in MOSSSOAP.dll)
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.String
Account name of the user.
- sourceInternal
Type: System.Guid
Internal unique identifier.
- sourceReference
Type: System.String
DirectoryEntry of the Distribution List (DL) from the Active Directory, or the SPWeb or SPSite object, depending on the MemberGroup.