You need to send a single value from a consumer Web Part to a provider Web Part.
Which interface should you use?
A.
IAlertNotifyHandler
B.
IWebPartField
C.
IWebPartParameters
D.
IWebPartRow
Explanation:
MNEMONIC RULE: “single value = field”Defines a provider interface for connecting two server controls using a single field of data.
This interface is designed to be used with Web Parts connections. In a Web Parts connection, two server controls that reside in a WebPartZoneBase zone establish a connection and share data, with one control acting as the consumer and the other control acting as a provider.
IWebPartField Interface
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.iwebpartfield.aspx
Believe the correct answer should be IWebPartParameters. As IWebPartParameters are used to pass parameter values in a Web Part connection.
http://msdn.microsoft.com/en-IN/library/system.web.ui.webcontrols.webparts.iwebpartparameters.aspx
In this case, you don’t need IWebPartParameters because only a single value is sent. IWebPartParameters can send an unlimited amount of data. So yes, it will works, but in this case IWebPartField is the most adapted answer.