ListFormWebPart.ShouldSerializeTemplateName method
表示是否應該保存的TemplateName屬性。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function ShouldSerializeTemplateName As Boolean
'用途
Dim instance As ListFormWebPart
Dim returnValue As Boolean
returnValue = instance.ShouldSerializeTemplateName()
public bool ShouldSerializeTemplateName()
傳回值
Type: System.Boolean
true如果屬性值已變更其預設值,因此會保存。否則, false。
備註
因為TemplateName屬性並沒有預設值,這個方法會提供。這個方法會指示是否TemplateName屬性已經從其預設值。如果您開發ListFormWebPart的設計工具或開發您自己加入ListFormWebPart的控制項,您通常叫用這個方法。