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
This class defines a Command Packet. Command Packets are the blob of data sent back and forth between the desktop and the device. A command packet has a Command ID, and a variable list of parameters (see T:Microsoft.RemoteToolSdk.PluginComponents.CommandPacketParameter).
Namespace: Microsoft.RemoteToolSdk.PluginComponents
Assembly: Microsoft.RemoteToolSdk (in microsoft.remotetoolsdk.dll)
Syntax
[DefaultMemberAttribute("Item")]
public class CommandPacket
'Declaration
<DefaultMemberAttribute("Item")> _
Public Class CommandPacket
Remarks
The list of the parameters is a FIFO arraylist. When a packet is received and needs to be processed, each call to GetXXX will get the next item in the array, starting at index point 0.
Inheritance Hierarchy
System.Object
Microsoft.RemoteToolSdk.PluginComponents.CommandPacket
Example
The following example builds a Command Packet, sets the Command ID to a value of 42, and adds two string parameters.
CommandPacket sendCommand = new CommandPacket();
sendCommand.CommandId = 42;
sendCommand.AddParameterString("First Parameter");
sendCommand.AddParameterString("Second Parameter");
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
CommandPacket Members
Microsoft.RemoteToolSdk.PluginComponents Namespace