PowerTCP Emulation for .NET CF
SendSubOption Method
See Also  Send comments on this topic.
Dart.Emulation Namespace > Telnet Class : SendSubOption Method




code
The option pertaining to the suboption.
subOption
The suboption to negotiate.
Sends a suboption request or response to the server.

Syntax

Visual Basic (Declaration) 
Public Function SendSubOption( _
   ByVal code As OptionCode, _
   ByVal subOption() As Byte _
) As Byte()
Visual Basic (Usage)Copy Code
Dim instance As Telnet
Dim code As OptionCode
Dim subOption() As Byte
Dim value() As Byte
 
value = instance.SendSubOption(code, subOption)
C# 
public byte[] SendSubOption( 
   OptionCode code,
   byte[] subOption
)
Managed Extensions for C++ 
public: byte[]* SendSubOption( 
   OptionCode code,
   byte[]* subOption
) 
C++/CLI 
public:
array<byte>^ SendSubOption( 
   OptionCode code,
   array<byte>^ subOption
) 

Parameters

code
The option pertaining to the suboption.
subOption
The suboption to negotiate.

Return Value

The bytes sent to the remote host.

Remarks

Option megotiation typically occurs automatically by the Telnet component. Suboption data is sent by the Telnet component when a new option (containing the appropriate suboption data) is added to either ClientOptions or ServerOptions. Only use this method if automatic option negotiation is not used.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.