The arguments for the method are:
| Arguments | Description | 
|---|---|
| [ in]FOSink | An IDispatchinterface implementing theOnFailovermethod which is notified in event of a failover. | 
| [ in]FOCtx | Context-specific information that the application wants passed into the OnFailovermethod in the event of a failover. | 
To receive failover notifications, a notification handler must be registered with the MonitorForFailover method. The notification handler must be an automation object (a class module in Visual Basic) that implements the OnFailover method.
The syntax of the method is:
Public Function OnFailover(Ctx As Variant, fo_type As Variant,fo_event as Variant, fo_OraDB as Variant)
| Variants | Description | 
|---|---|
| [in]Ctx | Passed into the MonitorForFailovermethod by the application. Context-sensitive information that the application wants passed in event of a failover. | 
| [in]fo_type | Failovertype. This is the type of failover that the client has requested. The values are:
 | 
| [in]
 | Failoverevent. This indicates the state of the failover. It has several possible values:
 | 
| [in]fo_OraDB | The OraDatabaseobject of the user session that is being failed over. Valid only when thefo_eventvariant isOO4O_FO_REAUTH. | 
See Also:
"Application Failover Notifications"