OPCDA.NET Reference Manual
DAServer Class Members
See Also  Properties  Methods  Events Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET.Controls Namespace : DAServer Class


Glossary Item Box

The following tables list the members exposed by DAServer.

Public Constructors

 NameDescription
Public ConstructorDAServer ConstructorOverloaded.   
Top

Public Properties

 NameDescription
Public PropertyContainer (Inherited from System.ComponentModel.Component)
Public PropertyisConnected Indicates whether the OPC server is currently connected.  
Public PropertyOpcServerMachine OPC server Computer Name and Access Credentials.  
Public PropertyOPCServerProgID OPC Server ProgID, usually in the form vendor.name.n  
Public PropertyOwnerForm The Form object that uses this control and requires synchronization.  
Public PropertyServerCheckIntervalAvailable in the OPCDA.NET Professional Edition only.
The OPC server connection is checked at this interval in milliseconds by executing a GetStatus call. The default interval is 10 seconds. The minimum is 1 sec.
The GeneralError handler is called if the server does not respond or is not in 'running' state.  
Public PropertyServerResponseLimitAvailable in the OPCDA.NET Professional Edition only.
This is the time limit in milliseconds for the OPC server call handling. The default is 10 seconds.
If the server call does not return within this time limit then the GeneralError handling method is called with a TIMEOUT error indication.
The server access thread may continue to wait for the server call to finish or timeout. Further requests are not being handled before this happens.  
Public PropertySite (Inherited from System.ComponentModel.Component)
Public PropertySrv The BGServer object used by this control. The BGServer class handles the OPC server access in background threads using methods of the OpcServer class.  
Public PropertyUaNamespaceURIsWith UA option only.
NamespaceURIs that match the NodeIDs persisted in the client application. If the application doesn't set this property before Connect() then the URIs are tried to be loaded from the file app.url.XML in the same directory as the app.exe executable. url is the UA server URL without the xxx:// This XML file is auto-generated at Connect() if the application didn't set this property.  
Public PropertyUseNetIOP The server is accessed through .Net Interop instead of Win32. Use it only for InProcess OPC servers.  
Top

Protected Properties

Public Methods

 NameDescription
Public MethodConnectThe configured OPC server is connected using the configured credentials. The method is called from the DAGroup.Create() method if the server is not yet connected. Therefore, when the application uses at least one DAGroup object with this server the application doen't need to call this method.
The call returns immediately after the request is queued. The request is processed in background threads. The completion event handler is called to report success or failure. If no completion handler is specified (null (Nothing) argument) then failures arer reported in the Notification event handler.  
Public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodDisconnectAvailable in the OPCDA.NET Professional Edition only.
The OPC server is disconnected. All associated DAGroup object are first removed. This DAServer object retains all configuration data and allws the server to reconnected by calling the Reconnect() method. The call returns immediately after the request is queued. The processing is handled asynchronously. Completion and errors are reported in the specified completion event handler. If no completion handler is specified then error are reported in the Notification event handler.  
Public MethodDisposeOverloaded. Overridden.  Clean up any resources being used.  
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodReConnectThe application calls this method typically used when server access problems have been detected. The server is disconnected and then reconnected. All DAGroup objects associated with this object are re-created.
The call returns immediately after the request is queued. The request is processed in background threads. The completion event handler is called to report success or failure. If no completion handler is specified (null (Nothing) argument) then failures arer reported in the Notification event handler.  
Public MethodToString (Inherited from System.ComponentModel.Component)
Top

Protected Methods

 NameDescription
Protected MethodFinalize (Inherited from System.ComponentModel.Component)
Protected MethodGetService (Inherited from System.ComponentModel.Component)
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Top

Public Events

 NameDescription
Public EventDisposed (Inherited from System.ComponentModel.Component)
Public EventNotificationsAvailable in the OPCDA.NET Professional Edition only.
This event handler is called when an error occurs and the user did not specify a completion handler in the request. It is also called when a request handling timeout occurs. In this case it's called even with a user completion handler specified. The request completion handler will be called when the request handling finally terminates. This may be after a much longer time limit.  
Public EventShutdownRequested Event handler for the server shutdown notification.  
Top

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.