SPControl.SetContextSite Method
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Sub SetContextSite ( _
context As HttpContext, _
site As SPSite _
)
'Usage
Dim context As HttpContext
Dim site As SPSiteSPControl.SetContextSite(context, site)
public static void SetContextSite(
HttpContext context,
SPSite site
)
Parameters
- context
Type: System.Web.HttpContext
- site
Type: Microsoft.SharePoint.SPSite