次の方法で共有


SPSiteLookupProvider.AddSite method

Adds a new site map entry.

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

Syntax

'Declaration
Public MustOverride Function AddSite ( _
    info As SPSiteLookupInfo _
) As Integer
'Usage
Dim instance As SPSiteLookupProvider
Dim info As SPSiteLookupInfo
Dim returnValue As Integer

returnValue = instance.AddSite(info)
public abstract int AddSite(
    SPSiteLookupInfo info
)

Parameters

Return value

Type: System.Int32
Int32
The number of site collections currently stored in the content database according to the site map. If this value is incorrect, the algorithm that attempts to load-balance site collections between databases will not function correctly.

Remarks

If Guid.Empty is passed for the site collection identifier, a new System.Guid must be generated and returned. Otherwise, the provided Guid must be used and returned. If a site with the same Guid or path already exists, code must throw an exception.

See also

Reference

SPSiteLookupProvider class

SPSiteLookupProvider members

Microsoft.SharePoint.Administration namespace