| Oracle Data Provider for .NET Developer's Guide Release 9.2.0.2 Part Number A96160-01 |
|
Oracle.DataAccess.Client Namespace, 10 of 26
The OracleFailoverEventArgs class provides event data for the OracleConnection.Failover event. When database failover occurs, the OracleConnection.Failover event is triggered along with the OracleFailoverEventArgs object that stores the event data.
Object
EventArgs
OracleFailoverEventArgs
// C# public sealed class OracleFailoverEventArgs
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
// C# // Receiving Failover notifications switch (eventArgs.FailoverEvent) { case FailoverEvent.Begin: { Console.WriteLine(" \nFailover Begin - Failing Over ..." + "Please stand by \n"); Console.WriteLine(" \nFailover type was found to be " + eventArgs.FailoverType); break; } case FailoverEvent.End: { Console.WriteLine(" \nFailover ended ...resuming services\n"); break; } case FailoverEvent.Error: { Console.WriteLine(" Failover error gotten. Sleeping...\n"); Thread.Sleep(3000); return FailoverReturnCode.Retry; } default: { Console.WriteLine("\nBad Failover Event: " + eventArgs.FailoverEvent); break; } }
Namespace: Oracle.DataAccess.Client
Assembly: Oracle.DataAccesss.dll
OracleFailoverEventArgs members are listed in the following tables:
The OracleFailoverEventArgs static methods are listed in Table 4-69.
| Methods | Description |
|---|---|
|
|
Inherited from |
The OracleFailoverEventArgs properties are listed in Table 4-70.
| Name | Description |
|---|---|
|
Specifies the type of failover the client has requested |
|
|
Indicates the state of the failover |
The OracleFailoverEventArgs public methods are listed in Table 4-71.
| Name | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
The OracleFailoverEventArgs static methods are listed in Table 4-72.
| Methods | Description |
|---|---|
|
|
Inherited from |
The OracleFailoverEventArgs properties are listed in Table 4-73.
| Name | Description |
|---|---|
|
Specifies the type of failover the client has requested |
|
|
Indicates the state of the failover |
This property indicates the state of the failover.
// C# public FailoverType FailoverType {get;}
A FailoverType enumeration value.
This property indicates the state of the failover.
// C# public FailoverEvent FailoverEvent {get;}
A FailoverEvent enumerated value.
The OracleFailoverEventArgs public methods are listed in Table 4-74.
| Name | Description |
|---|---|
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
Inherited from |
|
|
![]() Copyright © 2002 Oracle Corporation. All Rights Reserved. |
|