UserProfileService.AddLink method

Adds a quick link for the specified account name.

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


<SoapDocumentMethodAttribute("", RequestNamespace := "",  _
    ResponseNamespace := "",  _
    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
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("", RequestNamespace = "", 
    ResponseNamespace = "", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public QuickLinkData AddLink(
    string accountName,
    string name,
    string url,
    string group,
    Privacy privacy


  • accountName
    Type: System.String

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

Return value

Type: WebSvcUserProfileService.QuickLinkData
The newly added link.


Exception Condition

The link cannot be added.


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


UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace