Condividi tramite


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

See Also

Reference

SPControl Class

SPControl Members

Microsoft.SharePoint.WebControls Namespace