SPControl.SetContextSite method
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
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