Compartilhar via


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

Return value

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

See also

Reference

SPControl class

SPControl members

Microsoft.SharePoint.WebControls namespace