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

Syntax

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

value = instance.XmlDefinition

instance.XmlDefinition = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public virtual string XmlDefinition { get; set; }

Property Value

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

Remarks

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.

See Also

Reference

DataFormWebPart Class

DataFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace