次の方法で共有


SPSiteSubscription.Add method

Adds an SPSite to this SPSiteSubscription.

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

Syntax

'Declaration
Public Sub Add ( _
    site As SPSite _
)
'Usage
Dim instance As SPSiteSubscription
Dim site As SPSite

instance.Add(site)
public void Add(
    SPSite site
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The site parameter is a null reference (Nothing in Visual Basic).

InvalidOperationException

The SPSiteSubscription object was deleted, or the site is an administration application.

Remarks

Once an SPSiteobject is added to an SPSiteSubscription collection, the only way to remove the SPSite object is to delete the site.

See also

Reference

SPSiteSubscription class

SPSiteSubscription members

Microsoft.SharePoint namespace