DataFormWebPart.WebPartException property

Gets information about an exception associated with the current Data Form Web Part.

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

Syntax

'Declaration
Public ReadOnly Property WebPartException As Exception
    Get
'Usage
Dim instance As DataFormWebPart
Dim value As Exception

value = instance.WebPartException
public Exception WebPartException { get; }

Property value

Type: System.Exception
An exception object describing the exception that occurred during the transform.

Remarks

After the transform fails, the information that this exception contains may be used to display the appropriate error messages or other user interface elements or to perform other appropriate actions. When the transform fails, an exception normally occurs.

See also

Reference

DataFormWebPart class

DataFormWebPart members

Microsoft.SharePoint.WebPartPages namespace