Share via


TemplateBasedControl.RenderContext property

Gets or sets the Microsoft SharePoint Foundation context in which the control is rendered.

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

Syntax

'Declaration
Public Property RenderContext As SPContext
    Get
    Set
'Usage
Dim instance As TemplateBasedControl
Dim value As SPContext

value = instance.RenderContext

instance.RenderContext = value
public SPContext RenderContext { get; set; }

Property value

Type: Microsoft.SharePoint.SPContext
A SPContext object that represents the context in which the control is rendered. The default is the value of the Current property.

See also

Reference

TemplateBasedControl class

TemplateBasedControl members

Microsoft.SharePoint.WebControls namespace