Share via


SPSiteLookupProvider.LookupSite Method (Guid)

Returns an SPSiteLookupInfo object that can be used to get information about a site collection or host header named site collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public MustOverride Function LookupSite ( _
    siteId As Guid _
) As SPSiteLookupInfo
'Usage
Dim instance As SPSiteLookupProvider
Dim siteId As Guid
Dim returnValue As SPSiteLookupInfo

returnValue = instance.LookupSite(siteId)
public abstract SPSiteLookupInfo LookupSite(
    Guid siteId
)

Parameters

  • siteId
    Type: System.Guid

    The GUID of the site collection.

Return Value

Type: Microsoft.SharePoint.Administration.SPSiteLookupInfo
SPSiteLookupInfo
Information about the site collection if it can be found in the local server farm. Otherwise, returns a null reference (Nothing in Visual Basic).

See Also

Reference

SPSiteLookupProvider Class

SPSiteLookupProvider Members

LookupSite Overload

Microsoft.SharePoint.Administration Namespace