SPSite.WebApplication Property

Gets the parent SharePoint Web application for the site collection.

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

Syntax

Public ReadOnly Property WebApplication As SPWebApplication
    Get

Dim instance As SPSite
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

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace