Compartilhar via


ListFormWebPart.ShouldSerializeTemplateName Method

Indicates whether the TemplateName property should be persisted.

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

Syntax

'Declaration
Public Function ShouldSerializeTemplateName As Boolean
'Usage
Dim instance As ListFormWebPart
Dim returnValue As Boolean

returnValue = instance.ShouldSerializeTemplateName()
public bool ShouldSerializeTemplateName()

Return Value

Type: System.Boolean
true if the property value has been changed from its default and should therefore be persisted; otherwise, false.

Remarks

This method is provided because the TemplateName property does not have a default value. This method indicates whether the TemplateName property has changed from its default value. You typically invoke this method if you are either developing a designer for the ListFormWebPart or developing your own control incorporating the ListFormWebPart.

See Also

Reference

ListFormWebPart Class

ListFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace