次の方法で共有


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

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.

See also

Reference

SPSiteSubscription class

SPSiteSubscription members

GetSites overload

Microsoft.SharePoint namespace