Used by a Requestor to begin and maintain an event registration, as specified using a context, to be notified of events and associated value(s).
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public DOFRegistration createRegistration( DOFObjectID oid, DOFInterfaceEvent event_Renamed, DOFRegistrationListener listener, Object context )
Parameters
- oid
- Type: org.opendof.core.oalDOFObjectID
The identifier of the object. This must not be null. May be DOFObjectID.BROADCAST. - event_Renamed
- Type: org.opendof.core.oalDOFInterfaceEvent
The event. Must not be null. - listener
- Type: org.opendof.core.oalDOFRegistrationListener
Listener to receive state-changed and event-occurred notifications. Should not be null (or notifications cannot be received). - context
- Type: SystemObject
An optional, user-definable object that will be passed back in listeners as a member of DOFOperation. May be null.
Return Value
Type: DOFRegistrationThe DOFRegistration that may be used to destroy the registration. Will not be null.
Exceptions
Exception | Condition |
---|---|
DOFErrorException | If parameters fail validation. |
DOFErrorException |
Remarks
See Also