C# Class Opc.Ua.Com.Client.ComClient

Provides access to a COM server.
Inheritance: ComObject
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : void

Gracefully closes the connection to the server.

ComClient ( ComClientConfiguration configuration ) : System

Initializes the object with the ProgID of the server being accessed.

CreateInstance ( ) : void

Creates an instance of the COM server.

GetErrorString ( int error ) : string

Fetches the error string from the server.

QueryAvailableLocales ( ) : int[]

Fetches the available locales.

SelectLocaleId ( IList availableLocaleIds, IList preferredLocales ) : int

Selects the best matching locale id.

SetLocale ( int localeId ) : void

Sets the current locale.

SetUserIdentity ( IUserIdentity identity ) : void

Sets the current user identity.

Méthodes protégées

Méthode Description
OnConnected ( ) : void

Called immediately after connecting to the server.

Method Details

Close() public méthode

Gracefully closes the connection to the server.
public Close ( ) : void
Résultat void

ComClient() public méthode

Initializes the object with the ProgID of the server being accessed.
public ComClient ( ComClientConfiguration configuration ) : System
configuration ComClientConfiguration
Résultat System

CreateInstance() public méthode

Creates an instance of the COM server.
public CreateInstance ( ) : void
Résultat void

GetErrorString() public méthode

Fetches the error string from the server.
public GetErrorString ( int error ) : string
error int
Résultat string

OnConnected() protected méthode

Called immediately after connecting to the server.
protected OnConnected ( ) : void
Résultat void

QueryAvailableLocales() public méthode

Fetches the available locales.
public QueryAvailableLocales ( ) : int[]
Résultat int[]

SelectLocaleId() public static méthode

Selects the best matching locale id.
public static SelectLocaleId ( IList availableLocaleIds, IList preferredLocales ) : int
availableLocaleIds IList
preferredLocales IList
Résultat int

SetLocale() public méthode

Sets the current locale.
public SetLocale ( int localeId ) : void
localeId int
Résultat void

SetUserIdentity() public méthode

Sets the current user identity.
public SetUserIdentity ( IUserIdentity identity ) : void
identity IUserIdentity
Résultat void