Share via


SPSiteLookupProvider.LookupHostHeaderSiteId Method

Returns information about a 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 LookupHostHeaderSiteId ( _
    hostHeaderSiteName As String _
) As Guid
'Usage
Dim instance As SPSiteLookupProvider
Dim hostHeaderSiteName As String
Dim returnValue As Guid

returnValue = instance.LookupHostHeaderSiteId(hostHeaderSiteName)
public abstract Guid LookupHostHeaderSiteId(
    string hostHeaderSiteName
)

Parameters

  • hostHeaderSiteName
    Type: System.String

    A canonicalized token that uniquely identifies a host header named site collection.

Return Value

Type: System.Guid
Guid
The site collection identifier if the site collection exists. Otherwise, returns Guid.Empty.

See Also

Reference

SPSiteLookupProvider Class

SPSiteLookupProvider Members

Microsoft.SharePoint.Administration Namespace