Share via


SiteData.GetSiteUrl Method

Returns the GUID and URL of the site collection to which the specified URL belongs.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/GetSiteUrl", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetSiteUrl ( _
    Url As String, _
    <OutAttribute> ByRef siteUrl As String, _
    <OutAttribute> ByRef siteId As String _
) As UInteger
'Usage
Dim instance As SiteData
Dim Url As String
Dim siteUrl As String
Dim siteId As String
Dim returnValue As UInteger

returnValue = instance.GetSiteUrl(Url, _
    siteUrl, siteId)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/GetSiteUrl", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public uint GetSiteUrl(
    string Url,
    out string siteUrl,
    out string siteId
)

Parameters

Return Value

Type: System.UInt32

See Also

Reference

SiteData Class

SiteData Members

SiteData Web Service