Freigeben über


DataFormWebPart.SampleData-Eigenschaft

Speichert ein Beispiel einer XML-Daten verwendet, um das Steuerelement gerendert wird, wenn Livedaten nicht oder nicht verwendet werden sollte.

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; }

Eigenschaftswert

Typ: System.String

Siehe auch

Referenz

DataFormWebPart Klasse

DataFormWebPart-Member

Microsoft.SharePoint.WebPartPages-Namespace