获取或设置ShowWithSampleData属性。指定是否在编辑模式下的 Web 部件显示的真实数据或示例数据。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<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; }