Partager via


SetContextWeb Method

The SetContextWeb method of the SPControl class sets the Web site that serves as context for the request.

Parameters

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

web   A Microsoft.SharePoint.SPWeb object that represents the Web site.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security