GenericDataAcceptor.AddItem Method (String, String, Object, String) (Compact 7)

3/12/2014

Accepts a data item. Depending on the constructor used, the data item will be added to a control, or a DataItemReceived event will be fired.

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

Syntax

public void AddItem (
    string category,
    string description,
    Object value,
    string identifier
)
'Declaration
Public Sub AddItem ( _
    category As String, _
    description As String, _
    value As Object, _
    identifier As String _
)

Parameters

  • category
    Category
  • description
    Description
  • value
    Value. The ToString() implementation of the object is used to calculate the string value.
  • identifier
    This string can be used by the plug-in developer as they wish. It can be useful in the PluginData OnAddVirtualDataItem method for parsing saved data files. It is only passed on via the DataItemReceived event.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

GenericDataAcceptor Class
GenericDataAcceptor Members
Microsoft.RemoteToolSdk.PluginComponents Namespace