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
webApplication
Type: Microsoft.SharePoint.Administration.SPWebApplicationThe Web application.
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. |