SPControl.GetContextWebApplication method
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.