CommandTransport.ReceiveCommand Method (Windows Embedded CE 6.0)

1/5/2010

Receives a command from the device app, synchronously. It blocks until a command is available.

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

Syntax

public CommandPacket ReceiveCommand (
    PluginData pluginData
)
'Declaration
Public Function ReceiveCommand ( _
    pluginData As PluginData _
) As CommandPacket

Parameters

  • pluginData
    The plugin data object that is associated with the packet.

Return Value

The command

Remarks

Since this method blocks until a command is receieved, you may want to consider placing it in a thread to keep the UI responsive, or you may want to use the E:Microsoft.RemoteToolSdk.PluginComponents.CommandTransport.CommandReceived event instead.

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

CommandTransport Class
CommandTransport Members
Microsoft.RemoteToolSdk.PluginComponents Namespace