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.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetContextWebApplication ( _
context As HttpContext _
) As SPWebApplication
'Usage
Dim context As HttpContext
Dim returnValue As SPWebApplication
returnValue = SPControl.GetContextWebApplication(context)
public static SPWebApplication GetContextWebApplication(
HttpContext context
)
Parameters
- context
Type: System.Web.HttpContext
Return value
Type: Microsoft.SharePoint.Administration.SPWebApplication
Returns SPWebApplication.