SPControl.GetContextModule Method

Returns the module that serves as context for the request.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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