Share via


UserProfileService.AddLink method

Adds a quick link for the specified account name.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddLink", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://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("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddLink", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://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