共用方式為


DataViewWebPart.ShouldSerializeDataFields method

表示是否應該保存的DataFields屬性。

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

Syntax

'宣告
Public Function ShouldSerializeDataFields As Boolean
'用途
Dim instance As DataViewWebPart
Dim returnValue As Boolean

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

傳回值

Type: System.Boolean
true如果屬性值已變更其預設值 ;否則, false。

備註

因為DataFields屬性並沒有簡單的預設值,將提供ShouldSerializeDataFields方法。這個方法會指示屬性是否已變更其預設值。您通常可以叫用這個方法如果您開發DataViewWebPart的設計工具或開發您自己加入DataViewWebPart.的控制項

請參閱

參照

DataViewWebPart class

DataViewWebPart members

Microsoft.SharePoint.WebPartPages namespace