Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
1/5/2010
Constructs a Generic Data Acceptor that fires an event each time the AddItem method is called.
Namespace: Microsoft.RemoteToolSdk.PluginComponents
Assembly: Microsoft.RemoteToolSdk (in microsoft.remotetoolsdk.dll)
Syntax
public GenericDataAcceptor ()
'Declaration
Public Sub New
Remarks
The default constructor initializes any fields to their default values.
Example
The following example shows how to set up an event handler which is fired each time the AddItem method is called.
void EnumerateDataObject(
PluginData data
)
{
GenericDataAcceptor acceptor = new GenericDataAcceptor();
acceptor.DataItemReceived +=
new EventHandler<GenericDataEventArgs>(
acceptor_DataItemReceived
);
//
// Call upon the data to feed the strings to the
// data acceptor.
//
data.RenderGeneric(acceptor);
}
void acceptor_DataItemReceived(
object sender,
GenericDataEventArgs e
)
{
DoSomething(
e.Category,
e.Description,
e.Tag
);
}
See Also
Reference
GenericDataAcceptor Class
GenericDataAcceptor Members
Microsoft.RemoteToolSdk.PluginComponents Namespace