DataViewWebPart.GetRequiresData Method

Overrides the WebPart.CreateWebPartMenu method. It indicates whether this Web Part needs data during this round of communication.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Function GetRequiresData As Boolean
'Usage
Dim instance As DataViewWebPart
Dim returnValue As Boolean

returnValue = instance.GetRequiresData()
public override bool GetRequiresData()

Return Value

Type: System.Boolean
true registers this Web Part for the appropriate BeginDataRetrieval and EndDataRetrieval events.

Remarks

The GetRequiresData method helps distinguish between a connection with another Web Part and a postback.

See Also

Reference

DataViewWebPart Class

DataViewWebPart Members

Microsoft.SharePoint.WebPartPages Namespace