ShouldSerializeTemplateName method

ListFormWebPart.ShouldSerializeTemplateName method

Indicates whether the TemplateName property should be persisted.

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

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.

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.

© 2015 Microsoft