Partilhar via


UIVersionedContent.ContentTemplate Property

Gets or sets the template that contains content that is rendered when the UIVersion matches the specified version.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<TemplateInstanceAttribute(TemplateInstance.Single)> _
<TemplateContainerAttribute(GetType(UIVersionedContent))> _
Public Property ContentTemplate As ITemplate
    Get
    Set
'Usage
Dim instance As UIVersionedContent
Dim value As ITemplate

value = instance.ContentTemplate

instance.ContentTemplate = value
[TemplateInstanceAttribute(TemplateInstance.Single)]
[TemplateContainerAttribute(typeof(UIVersionedContent))]
public ITemplate ContentTemplate { get; set; }

Property Value

Type: System.Web.UI.ITemplate
A template that contains the content that is rendered.

See Also

Reference

UIVersionedContent Class

UIVersionedContent Members

Microsoft.SharePoint.WebControls Namespace