Share via


SPControl.GetContextModule method

Returns the module that serves as context for the request.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function GetContextModule ( _
    context As HttpContext _
) As SPModule
'Usage
Dim context As HttpContext
Dim returnValue As SPModule

returnValue = SPControl.GetContextModule(context)
public static SPModule GetContextModule(
    HttpContext context
)

Parameters

  • context
    Type: System.Web.HttpContext

    A System.Web.HTTPContext object, which encapsulates the HTTP-specific context that is used by the server to process site requests.

Return value

Type: Microsoft.SharePoint.SPModule
A Microsoft.SharePoint.SPModule object that represents the module.

See also

Reference

SPControl class

SPControl members

Microsoft.SharePoint.WebControls namespace