Share via


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

Return Value

Type: Microsoft.SharePoint.Administration.SPWebApplication
Returns SPWebApplication.

See Also

Reference

SPControl Class

SPControl Members

Microsoft.SharePoint.WebControls Namespace