UserProfileService.RemoveLink Method
Removes a quick link 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/RemoveLink", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", _
ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub RemoveLink ( _
accountName As String, _
id As Integer _
)
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim id As Integer
instance.RemoveLink(accountName, id)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/RemoveLink", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void RemoveLink(
string accountName,
int id
)
Parameters
accountName
Type: System.StringThe account name of the user.
id
Type: System.Int32The unique ID for the link to remove.
Exceptions
Exception | Condition |
---|---|
SoapException | The link cannot be deleted. |
Remarks
This method deletes the link with the specified ID for the user specified by the accountName parameter.