Condividi tramite


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)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.SampleData

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

Property Value

Type: System.String

See Also

Reference

DataFormWebPart Class

DataFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace