DataFormWebPart.XmlDefinition property

Gets or sets the view CAML associated with this Data Form Web Part.

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

<PersonalizableAttribute(PersonalizationScope.Shared)> _
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
Public Overridable Property XmlDefinition As String
Dim instance As DataFormWebPart
Dim value As String

value = instance.XmlDefinition

instance.XmlDefinition = value

Property value

Type: System.String
A String that contains inline the view CAML.

The XmlDefinitionLink property contains the URL local of an external file that contains the view CAML. The XmlDefinition property takes precedence over the XmlDefinitionLink property.