Visual Basic (Declaration) | |
---|---|
Public Function SendOption( _ ByVal command As Command, _ ByVal code As OptionCode _ ) As Byte() |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Telnet Dim command As Command Dim code As OptionCode Dim value() As Byte value = instance.SendOption(command, code) |
C# | |
---|---|
public byte[] SendOption( Command command, OptionCode code ) |
Managed Extensions for C++ | |
---|---|
public: byte[]* SendOption( Command command, OptionCode code ) |
C++/CLI | |
---|---|
public: array<byte>^ SendOption( Command command, OptionCode code ) |
Parameters
- command
- The command to send with the option.
- code
- The option to negotiate.
Option negotiation typically occurs automatically by the Telnet component. Using this method will disable the automatic negotiation. Once disabled, all options must be negotiated manually.
To manually negotiate options:
- Clear both ClientOptions and ServerOptions.
- Use SendOption from within the CommandReceived event in response to commands from the server.
Target Platforms: Microsoft .NET Framework 2.0