DataFormWebPart.SampleData property

Stores sample XML data used to render the control when live data cannot or should not be used.

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

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared, True)> _
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
<ResourcesAttribute("DataViewWebPartSampleDataLiteral", "Miscellaneous",  _
    "DataViewWebPartSampleDataDescription")> _
<WebBrowsableAttribute(True)> _
Public Property SampleData As String
    Get
    Set
'Usage
Dim instance As DataFormWebPart
Dim value As String

value = instance.SampleData

instance.SampleData = value
[PersonalizableAttribute(PersonalizationScope.Shared, true)]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[ResourcesAttribute("DataViewWebPartSampleDataLiteral", "Miscellaneous", 
    "DataViewWebPartSampleDataDescription")]
[WebBrowsableAttribute(true)]
public string SampleData { get; set; }

Property value

Type: System.String

See also

Reference

DataFormWebPart class

DataFormWebPart members

Microsoft.SharePoint.WebPartPages namespace