Share via


PublishedLinksService.GetLinks Method

Gets the published links to the SharePoint Server sites that are available to the current user.

Namespace:  [PublishedLinksService Web service]
Web service reference: http://Site/_vti_bin/PublishedLinksService.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService/GetLinks", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetLinks As ServerLink()
'Usage
Dim instance As PublishedLinksService
Dim returnValue As ServerLink()

returnValue = instance.GetLinks()
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService/GetLinks", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public ServerLink[] GetLinks()

Return Value

Type: []
The links to the sites available to the user.

Remarks

This method returns all the published links, as well as the user's My Site, profile site, and membership sites.

See Also

Reference

PublishedLinksService Class

PublishedLinksService Members

PublishedLinksService Web Service