SPSiteSubscription.GetSites method (SPContentDatabase)
Retrieves the site collections that belong to the site subscription in the specified content database.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetSites ( _
contentDatabase As SPContentDatabase _
) As SPSiteSubscriptionSiteCollection
'Usage
Dim instance As SPSiteSubscription
Dim contentDatabase As SPContentDatabase
Dim returnValue As SPSiteSubscriptionSiteCollection
returnValue = instance.GetSites(contentDatabase)
public SPSiteSubscriptionSiteCollection GetSites(
SPContentDatabase contentDatabase
)
Parameters
contentDatabase
Type: Microsoft.SharePoint.Administration.SPContentDatabaseThe content database.
Return value
Type: Microsoft.SharePoint.SPSiteSubscriptionSiteCollection
SPSiteSubscriptionSiteCollection
The site collections that belong to the site subscription.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The specified content database does not exist. |