Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds an SPSite to this SPSiteSubscription.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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
site
Type: Microsoft.SharePoint.SPSiteThe SPSite to add.
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.