UserProfileService.AddPinnedLink method

Adds a pinned link for the specified account name.

Namespace:  WebSvcUserProfileService
Assembly:  UserProfileServices (in UserProfileServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddPinnedLink", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function AddPinnedLink ( _
    accountName As String, _
    name As String, _
    url As String _
) As PinnedLinkData
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim name As String
Dim url As String
Dim returnValue As PinnedLinkData

returnValue = instance.AddPinnedLink(accountName, _
    name, url)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddPinnedLink", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public PinnedLinkData AddPinnedLink(
    string accountName,
    string name,
    string url
)

Parameters

  • accountName
    Type: System.String

    The account name of the user to which a pinned link is added.

Return value

Type: WebSvcUserProfileService.PinnedLinkData
The information about the new pinned link.

Exceptions

Exception Condition
SoapException

The link cannot be added.

Remarks

This method creates a new pinned link with the specified name and URL for the specified user.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace