SPSiteCollection.WebApplication property

Gets the Web application in which site collections within this collection are stored.

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

Syntax

'Declaration
Public ReadOnly Property WebApplication As SPWebApplication
    Get
'Usage
Dim instance As SPSiteCollection
Dim value As SPWebApplication

value = instance.WebApplication
public SPWebApplication WebApplication { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPWebApplication
An SPWebApplication object that represents the Web application.

See also

Reference

SPSiteCollection class

SPSiteCollection members

Microsoft.SharePoint.Administration namespace