Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the context and SPWeb for the control.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Sub SetContextWeb ( _
context As HttpContext, _
web As SPWeb _
)
'Usage
Dim context As HttpContext
Dim web As SPWebSPControl.SetContextWeb(context, web)
public static void SetContextWeb(
HttpContext context,
SPWeb web
)
Parameters
context
Type: System.Web.HttpContextThe HTTP context of the request.
web
Type: Microsoft.SharePoint.SPWebThe SPWeb containing the page that contains this control.