共用方式為


DataFormWebPart.ShowWithSampleData property

取得或設定ShowWithSampleData屬性。指定是否要實際資料或範例資料顯示在編輯模式下的 [網頁組件。

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

Syntax

'宣告
<WebBrowsableAttribute(False)> _
<PersonalizableAttribute(PersonalizationScope.Shared, True)> _
Public Property ShowWithSampleData As Boolean
    Get
    Set
'用途
Dim instance As DataFormWebPart
Dim value As Boolean

value = instance.ShowWithSampleData

instance.ShowWithSampleData = value
[WebBrowsableAttribute(false)]
[PersonalizableAttribute(PersonalizationScope.Shared, true)]
public bool ShowWithSampleData { get; set; }

Property value

Type: System.Boolean

請參閱

參照

DataFormWebPart class

DataFormWebPart members

Microsoft.SharePoint.WebPartPages namespace