次の方法で共有


SPSiteSubscription.GetSites method (SPWebApplication)

Retrieves the site collections that belong to the site subscription in the specified Web application.

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

Syntax

'Declaration
Public Function GetSites ( _
    webApplication As SPWebApplication _
) As SPSiteSubscriptionSiteCollection
'Usage
Dim instance As SPSiteSubscription
Dim webApplication As SPWebApplication
Dim returnValue As SPSiteSubscriptionSiteCollection

returnValue = instance.GetSites(webApplication)
public SPSiteSubscriptionSiteCollection GetSites(
    SPWebApplication webApplication
)

Parameters

Return value

Type: Microsoft.SharePoint.SPSiteSubscriptionSiteCollection
SPSiteSubscriptionSiteCollection
The site collections that belong to the site subscription.

Exceptions

Exception Condition
ArgumentNullException

The specified Web application does not exist.

See also

Reference

SPSiteSubscription class

SPSiteSubscription members

GetSites overload

Microsoft.SharePoint namespace