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


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

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


  • 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


SPControl Class

SPControl Members

Microsoft.SharePoint.WebControls Namespace