Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a quick 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/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.StringThe account name of the user to add a link to.
name
Type: System.StringThe name for the link.
url
Type: System.StringThe URL of the link.
group
Type: System.StringThe name of the group for the link.
privacy
Type: [UserProfileService Web service].PrivacyThe privacy policy level of the link.
Return Value
Type: [UserProfileService Web service].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.