Share via


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)

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