CommandPacket.AddParameterBytes Method (Compact 7)

3/12/2014

Adds an array of bytes to the Command Packet.

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

Syntax

public void AddParameterBytes (
    byte[] data
)
'Declaration
Public Sub AddParameterBytes ( _
    data As Byte() _
)

Parameters

  • data
    The array of bytes.

Example

The following example builds a Command Packet, sets the Command ID to a value of 42, and adds an array of three bytes as a parameter.

CommandPacket sendCommand = new CommandPacket();
sendCommand.CommandId = 42;
sendCommand.AddParameterBytes( new byte[] { 0x34, 0x29, 0xAF });

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 Class
CommandPacket Members
Microsoft.RemoteToolSdk.PluginComponents Namespace