SPControl.GetContextWebApplication Method
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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.