C# Класс Opc.Ua.Client.Controls.ConnectServerCtrl

A tool bar used to connect to a server.
Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CertificateValidator_CertificateValidation void
DoConnectComplete void
InitializeComponent void
SelectEndpoint EndpointDescription
Server_ConnectMI_Click void
Server_ReconnectComplete void
Session_KeepAlive void
UpdateStatus void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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.

Описание методов

Connect() публичный Метод

Creates a new session.
public Connect ( ) : Session
Результат Session

Connect() публичный Метод

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.
Результат Session

ConnectServerCtrl() публичный Метод

Initializes the object.
public ConnectServerCtrl ( ) : System
Результат System

Disconnect() публичный Метод

Disconnects from the server.
public Disconnect ( ) : void
Результат void

Discover() публичный Метод

Prompts the user to choose a server on another host.
public Discover ( string hostName ) : void
hostName string
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

SetAvailableUrls() публичный Метод

Sets the URLs shown in the control.
public SetAvailableUrls ( IList urls ) : void
urls IList
Результат void