CommandPacket.Item Property (Compact 7)

3/12/2014

Returns a parameter given an index.

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

Syntax

public CommandPacketParameter this [
    int index
] { get; }
'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As CommandPacketParameter

Parameters

  • index
    Index of the parameter.

Example

The following code snippet shows how you can access a CommandPacketParameter without pulling it off the FIFO queue. In this example, the second parameter is accessed.

CommandPacket commandPacket = new CommandPacket();
...
(fill out the packet here)
...
if (commandPacket.Count > 1)
{
    CommandPacketParameter cpp = commandPacket[2];
}

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