OPCAE.NET Reference Manual
OpcEventServer Class Members
See Also  Fields  Properties  Methods  Events Send Feedback
OPCAE.NET Namespace : OpcEventServer Class


Glossary Item Box

The following tables list the members exposed by OpcEventServer.

Public Constructors

 NameDescription
Public ConstructorOpcEventServer ConstructorOverloaded.   
Top

Public Fields

 NameDescription
Public FieldAuthenticationWindowsIntegrated  
Public FieldPreferredEndpointOnly with UA option.
Use this endpoint at connect if possible.  
Public FieldUaAccessWithoutSecurityPreferredOnly with UA option.
Request to access the UA server with least security if true, otherwise with highest.  
Top

Public Properties

 NameDescription
Public PropertyConnectThroughNIOS If TRUE a local OPC server is connected using NetInterop Services  
Public Propertystatic (Shared in Visual Basic)ErrorsAsExecptions If TRUE all errors throw an OPCException instead of returning a HRESULT error code.  
Public PropertyHostInfo Server access credentials and machine name.  
Public Propertystatic (Shared in Visual Basic)onNotifyUntrustedCertificate handler that is called when the server certificate is untrusted  
Public PropertyServerName ProgID of the connected server.  
Public PropertyuaAEWrapperOnly with UA option.
UA wrapper instance. The applicaiton can use this link to access UA wrapper methods directly. The link is null for instancs of non-UA servers.  
Public Propertystatic (Shared in Visual Basic)UaAppConfigFileAutoCreate If not null then an application configuration file is created unless it already exists. The defined name is used as the appliction name.  
Public PropertyUaConfigFileNameOnly with UA option.
The name of the file with the UA client configuration.
The name can be an absolute file path or a file name relative to the application executable directory.
When the class instance is created the name is set to xxx.Ua.Config.Xml
with xxx being the name of the application executable. The application can overwrite the name before Connect() is called.  
Public PropertyUaNamespaceURIs 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 PropertyUaTraceMask Mask of enabled UA trace events  
Public Propertystatic (Shared in Visual Basic)Version Version number of the OPCAE.NET wrapper layer.  
Top

Public Methods

 NameDescription
Public MethodAckConditionOverloaded.  The client uses the AckCondition method to acknowledge one or more conditions in the Event Server. The client receives event notifications from conditions via the OnEvent callback. This AckCondition method specifically acknowledges the condition becoming active or transitioning into a different sub-condition (and no other state transition of the condition). One or more conditions belong to a specific event source – the source of the event notification. For each condition-related event notification, the corresponding Source, Condition Name, Active Time and Cookie is received by the client as part of the OnEvent callback parameters.  
Public MethodChangeUser Signal the server that the client has changed the user credentials of its proxy blanket.  
Public MethodConnectOverloaded.  Connect to the named OPC Server on the named machine  
Public MethodCreateAreaBrowser Create an OPCEventAreaBrowser object on behalf of this client and return the interface to the Client. This object will support the IUnknown and IOPCEventAreaBrowser interfaces. The client can use this interface to browse the process areas available from the server as described in the IOPCEventAreaBrowser interface shown below. If the OPC Event Server does not support browsing of the process area space, then this method will fail. The client may create multiple OPCEventAreaBrowser objects in order to support concurrent access to multiple levels, in the case of a hierarchical area name space. The OPCEventAreaBrowser uses conventional reference counting and thus will be deleted with all interfaces to it are released.  
Public MethodDisableConditionByArea Places the specified process areas into the disabled state. Therefore, the server will now cease generating condition-related events for these conditions. The effect of this method is global within the scope of the event server. Therefore, if the server is supporting multiple clients, the conditions are disabled for all clients, and they will stop receiving the associated condition-related events.  
Public MethodDisableConditionByArea2Places the specified process areas into the disabled state. Therefore, the server will now cease generating condition-related events for these conditions. The effect of this method is global within the scope of the event server. Therefore, if the server is supporting multiple clients, the conditions are disabled for all clients, and they will stop receiving the associated condition-related events.
This is an optional function that's not supported by all servers.  
Public MethodDisableConditionBySource Places all conditions for the specified event sources into the disabled state. Therefore, the server will no longer generate condition-related events for these conditions. The effect of this method is global within the scope of the event server. Therefore, if the server is supporting multiple clients, the conditions are disabled for all clients, and they will stop receiving the associated condition-related events.  
Public MethodDisableConditionBySource2Places all conditions for the specified event sources into the disabled state. Therefore, the server will no longer generate condition-related events for these conditions. The effect of this method is global within the scope of the event server. Therefore, if the server is supporting multiple clients, the conditions are disabled for all clients, and they will stop receiving the associated condition-related events.
This is an optional function that's not supported by all servers.  
Public MethodDisconnect Disconnect from the OPC server. The COM interface are released.  
Public MethodEnableConditionByArea Places the specified process areas into the enabled state. Therefore, the server will now generate condition-related events for these conditions as long as the source itself is enabled and no containing area in its hierarchy is disabled. The effect of this method is global within the scope of the event server. Therefore, if the server is supporting multiple clients, the conditions are enabled for all clients, and they will begin receiving the associated condition-related events.  
Public MethodEnableConditionByArea2Places the specified process areas into the enabled state. Therefore, the server will now generate condition-related events for these conditions as long as the source itself is enabled and no containing area in its hierarchy is disabled. The effect of this method is global within the scope of the event server. Therefore, if the server is supporting multiple clients, the conditions are enabled for all clients, and they will begin receiving the associated condition-related events.
This is an optional function that's not supported by all servers.  
Public MethodEnableConditionBySource Places all conditions for the specified event sources into the enabled state. Therefore, the server will now generate condition-related events for these conditions. The effect of this method is global within the scope of the event server. Therefore, if the server is supporting multiple clients, the conditions are enabled for all clients, and they will begin receiving the associated condition-related events.  
Public MethodEnableConditionBySource2Places all conditions for the specified event sources into the enabled state. Therefore, the server will now generate condition-related events for these conditions. The effect of this method is global within the scope of the event server. Therefore, if the server is supporting multiple clients, the conditions are enabled for all clients, and they will begin receiving the associated condition-related events.
This is an optional function that's not supported by all servers.  
Public MethodGetConditionState Returns the current state information for the condition instance corresponding to the Source and ConditionName. The OPCCONDITIONSTATE structure is defined below. See section 2.4 for a discussion of conditions and their states.  
Public MethodGetEnableStateByAreaReturns the current enable state and the effective enable state for each area specified in Areas.
This is an optional function that's not supported by all servers.  
Public MethodGetEnableStateBySourceReturns the current enable state and the effective enable state for each specified source.
This is an optional function that's not supported by all servers.  
Public MethodGetErrorString Return the description for the specified error from the server. The this fails the error description is taken from the wrapper internal table.  
Public MethodGetLocaleID Get the current default LocalID. ( IOPCCommon::GetLocaleID )  
Public MethodGetStatus Get the current status of the OPC Server. See OPC specs IOPCServer::GetStatus for details.  
Public MethodIsAvailableNT Query the current security configuration of the OPC server to determine if the current server configuration provides OPC Security by NT credentials.  
Public MethodIsAvailablePriv Query the current security configuration of the OPC server to determine if the current server configuration provides OPC Security by private credentials.  
Public MethodLogoff Remove the private credential established by the previous call to Logon(). OPC Security reverts to the state before the first call of Logon(), there are no private credentials active for the client.  
Public MethodLogon Changes the identity of the client application’s user. Future access to any security objects will be authorized with the new user’s credentials until a subsequent call to Logoff() or Logon(). For OPC Servers which also implement IOPCSecurityNT, access checking with NT credentials will be disabled until Logoff() is called.  
Public MethodQueryAvailableFilters The QueryAvailableFilters method gives clients a means of finding out exactly which filter criteria are supported by a given event server. This method would typically be invoked before configuring thefilter on an OPCEventSubscription object.  
Public MethodQueryAvailableLocaleIDs Query the LocaleIDs supported by the OPC Server. ( IOPCCommon::QueryAvailableLocaleIDs ) If any error occurs a ThrowExceptionForHR is thrown.  
Public MethodQueryConditionNames The QueryConditionNames method gives clients a means of finding out the specific condition names which the event server supports for the specified event category. This method would typically be invoked prior to specifying an event filter. Condition names are server specific.  
Public MethodQueryEventAttributesOverloaded.  Using the EventCategories returned by the QueryEventCategories method, client application can invoke the QueryEventAttributes method to get information about the vendor-specific attributes the server can provide as part of an event notification for an event within the specified event category. Simple servers may not support any vendor-specific attributes for some or even all EventCategories. Attributes of event notifications are described in OPC AE specification section 2.5.2. Some possible vendor-specific attributes are included in Appendix C of the OPC AE specification.  
Public MethodQueryEventCategories The QueryEventCategories method gives clients a means of finding out the specific categories of events supported by a given server. This method would typically be invoked prior to specifying an event filter. Servers will be able to define their own custom event categories, but a list of recommended categories is provided.  
Public MethodQueryMinImpersonationLevel Information method to help a client to determine the minimal impersonation level the server requires to gain proper access to secured data sources.  
Public MethodQuerySourceConditions The QuerySourceConditions method gives clients a means of finding out the specific condition names associated with the specified source (e.g. FIC101).. Condition names are server specific.  
Public MethodQuerySubConditionNames The QuerySubConditionNames method gives clients a means of finding out the specific sub-condition names which are associated with the specified condition name. Condition names are server specific.  
Public MethodSetClientName Define a client name. ( IOPCCommon::SetClientName )  
Public MethodSetLocaleID Set the default LocaleId for this session. ( IOPCCommon::SetLocaleID )  
Public MethodTranslateToItemIDs Many OPC Alarm/Event servers are associated with OPC Data Access servers. Since these servers may provide a Data Access interface to some or all of the attributes associated with events, applications need the ability to determine the specific ItemID for one or more specific attribute ID codes given an associated source ID in order to be able to access the attribute via the Data Access interface. TranslateToItemIDs performs the required translation. This function will be useful for the case where the client wishes to use the OPC Data Access interface to subscribe to real-time data associated with a given event or alarm. Given an event source, and an array of associated attribute ID codes, return an array of the item ID strings corresponding to each attribute ID. The event source, along with the associated attribute IDs are returned as part of the IOPCEventSink::OnEvent callback mechanism. Attribute ID codes and descriptions for a given event category can also be queried via the IOPCEventServer::QueryEventAttributes function. The server must return a NULL string for those attribute IDs that do not have a corresponding item ID.  
Public MethodWriteUaLogFor internal use only.
The method is called from the UA Option to pass trace notification to the application.  
Top

Protected Methods

 NameDescription
Protected MethodFinalize Destructor  
Top

Public Events

 NameDescription
Public EventShutdownRequested ShutdownRequestEventHandler  
Public EventUaTraceNotification UA Trace Notifcation  
Top

See Also

© 2002-2018 Advosol Inc. All Rights Reserved.