Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

WebPart.GetRequiresData method

NOTE: This API is now obsolete.

The virtual method that is called by the Web Part infrastructure when the System.Web.UI.Control.PreRender event occurs to indicate that a Web Part requires data.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ObsoleteAttribute("Use IConnectionData.GetRequiresData() instead.")]
public virtual bool GetRequiresData()

Return value

Type: System.Boolean
true if the Web Part requires data; otherwise, false.

The GetRequiresData method is used in conjunction with the GetData method. A connectable Web Part that requires data should override the GetRequiresData method. This method should return true until the Web Part has finished with all of its data requests. The Web Part should continue to return true even if it is not currently in a position to make a request. For example, if it is waiting on data from an interface from Microsoft.SharePoint.WebPartPages.Communication namespace such as the IFilterConsumer interface.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.