Partager via


SPControl.SetContextWeb method

Specifies the context and SPWeb for the control.

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

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

See also

Reference

SPControl class

SPControl members

Microsoft.SharePoint.WebControls namespace