GenericDataAcceptor.DataItemReceived Event (Windows Embedded CE 6.0)

1/5/2010

Fired when a data item is received by the acceptor.

Namespace: Microsoft.RemoteToolSdk.PluginComponents
Assembly: Microsoft.RemoteToolSdk (in microsoft.remotetoolsdk.dll)

Syntax

public event EventHandler<GenericDataEventArgs> DataItemReceived
'Declaration
Public Event DataItemReceived As EventHandler(Of GenericDataEventArgs)

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
    );
}

Remarks

The event handler receives an argument of type GenericDataEventArgs.

The following GenericDataEventArgs provides information specific to this event.

Property

Description

Category

Category

Description

Description

Identifier

User defined, not shown in the listview

Tag

Item (must implement ToString() )

See Also

Reference

GenericDataAcceptor Class
GenericDataAcceptor Members
Microsoft.RemoteToolSdk.PluginComponents Namespace