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