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.
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)
Available in Sandboxed Solutions: No
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. |