Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the context web application, if present.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared ReadOnly Property Context As SPWebApplication
Get
'Usage
Dim value As SPWebApplication
value = SPWebApplication.Context
public static SPWebApplication Context { get; }
Property value
Type: Microsoft.SharePoint.Administration.SPWebApplication
Remarks
This ONLY works if there is an HttpContext.