UserProfileService.AddLink method

Adds a quick link for the specified account name.

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

Syntax

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

returnValue = instance.AddLink(accountName, _
    name, url, group, privacy)
[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddLink", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public QuickLinkData AddLink(
    string accountName,
    string name,
    string url,
    string group,
    Privacy privacy
)

Parameters

  • accountName
    Type: System.String

    The account name of the user to add a link to.

Return value

Type: WebSvcUserProfileService.QuickLinkData
The newly added link.

Exceptions

Exception Condition
SoapException

The link cannot be added.

Remarks

This method creates a new quick link with the specified information for the user specified by the accountName parameter, and returns the information about the newly added link.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace