C# Class Opc.Ua.Client.Controls.ConnectServerCtrl

A tool bar used to connect to a server.
Inheritance: System.Windows.Forms.UserControl
Afficher le fichier Open project: OPCFoundation/UA-.NET

Private Properties

Свойство Type Description
CertificateValidator_CertificateValidation void
DoConnectComplete void
InitializeComponent void
SelectEndpoint EndpointDescription
Server_ConnectMI_Click void
Server_ReconnectComplete void
Session_KeepAlive void
UpdateStatus void

Méthodes publiques

Méthode Description
Connect ( ) : Session

Creates a new session.

Connect ( string serverUrl, bool useSecurity ) : Session

Creates a new session.

ConnectServerCtrl ( ) : System

Initializes the object.

Disconnect ( ) : void

Disconnects from the server.

Discover ( string hostName ) : void

Prompts the user to choose a server on another host.

SetAvailableUrls ( IList urls ) : void

Sets the URLs shown in the control.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
CertificateValidator_CertificateValidation ( CertificateValidator sender, CertificateValidationEventArgs e ) : void

Handles a certificate validation error.

DoConnectComplete ( object state ) : void

Raises the connect complete event on the main GUI thread.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

SelectEndpoint ( ) : EndpointDescription

Finds the endpoint that best matches the current settings.

Server_ConnectMI_Click ( object sender, EventArgs e ) : void

Handles a click on the connect button.

Server_ReconnectComplete ( object sender, EventArgs e ) : void

Handles a reconnect event complete from the reconnect handler.

Session_KeepAlive ( Session session, KeepAliveEventArgs e ) : void

Handles a keep alive event from a session.

UpdateStatus ( bool error, System.DateTime time, string status ) : void

Updates the status control.

Method Details

Connect() public méthode

Creates a new session.
public Connect ( ) : Session
Résultat Session

Connect() public méthode

Creates a new session.
public Connect ( string serverUrl, bool useSecurity ) : Session
serverUrl string The URL of a server endpoint.
useSecurity bool Whether to use security.
Résultat Session

ConnectServerCtrl() public méthode

Initializes the object.
public ConnectServerCtrl ( ) : System
Résultat System

Disconnect() public méthode

Disconnects from the server.
public Disconnect ( ) : void
Résultat void

Discover() public méthode

Prompts the user to choose a server on another host.
public Discover ( string hostName ) : void
hostName string
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

SetAvailableUrls() public méthode

Sets the URLs shown in the control.
public SetAvailableUrls ( IList urls ) : void
urls IList
Résultat void