ListFormWebPart.TemplateName property
Gets or sets the name of the template.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<ResourcesAttribute("TemplateName", "Miscellaneous", "TemplateName")> _
<BrowsableAttribute(True)> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property TemplateName As String
Get
Set
'Usage
Dim instance As ListFormWebPart
Dim value As String
value = instance.TemplateName
instance.TemplateName = value
[ResourcesAttribute("TemplateName", "Miscellaneous", "TemplateName")]
[BrowsableAttribute(true)]
[WebPartStorageAttribute(Storage.Shared)]
public string TemplateName { get; set; }
Property value
Type: System.String
The name of the template, which depends on the current PageType. If not set, the default value is based on the current value of the PageType property.