CommandPacket.AddParameterString Method (Compact 7)

3/12/2014

Adds a string to the Command Packet.

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

Syntax

public void AddParameterString (
    string data
)
'Declaration
Public Sub AddParameterString ( _
    data As String _
)

Parameters

  • data
    A string.

Example

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

CommandPacket sendCommand = new CommandPacket();
sendCommand.CommandId = 42;
sendCommand.AddParameterString( "Hello World!" );

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