VncSharp

VncClient.Connect Method (String, Int32, Int32)

Connect to a VNC Host and determine which type of Authentication it uses. If the host uses Password Authentication, a call to Authenticate() will be required.

[Visual Basic]
Overloads Public Function Connect( _
   ByVal host As String, _
   ByVal display As Integer, _
   ByVal port As Integer _
) As Boolean
[C#]
public bool Connect(
   string host,
   int display,
   int port
);

Parameters

host
The IP Address or Host Name of the VNC Host.
display
The Display number (used on Unix hosts).
port
The Port number used by the Host, usually 5900.

Return Value

Returns True if the VNC Host requires a Password to be sent after Connect() is called, otherwise False.

See Also

VncClient Class | VncSharp Namespace | VncClient.Connect Overload List