次の方法で共有


SPSiteLookupProvider.LookupSite method (SPWebApplication, String)

Returns an SPSiteLookupInfo object that can be used to get the SPContentDatabase object that contains the site collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public MustOverride Function LookupSite ( _
    application As SPWebApplication, _
    sitePath As String _
) As SPSiteLookupInfo
'Usage
Dim instance As SPSiteLookupProvider
Dim application As SPWebApplication
Dim sitePath As String
Dim returnValue As SPSiteLookupInfo

returnValue = instance.LookupSite(application, _
    sitePath)
public abstract SPSiteLookupInfo LookupSite(
    SPWebApplication application,
    string sitePath
)

Parameters

Return value

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

Remarks

This LookupSite method overload does not work for host-header site collections.

See also

Reference

SPSiteLookupProvider class

SPSiteLookupProvider members

LookupSite overload

Microsoft.SharePoint.Administration namespace