The OracleHAEventArgs
class provides event data for the OracleConnection.HAEvent
event.
System.Object
System.EventArgs
Oracle.DataAccess.Client.OracleHAEventArgs
// C# public sealed class OracleHAEventArgs
All public methods are thread-safe, although instance methods do not guarantee thread safety.
When any HA event occurs for a service, service member, host, node, or instance that an OracleConnection
object is set to with "ha events=true"
, the OracleConnection.HAEvent
is triggered and passes an instance of OracleHAEventArgs
to all the delegates that have registered with the event.
Namespace: Oracle.DataAccess.Client
Assembly: Oracle.DataAccess.dll
ODP.NET Version: ODP.NET for .NET Framework 2.0 or ODP.NET for .NET Framework 4.
See Also:
OracleHAEventArgs
members are listed in the following table.
The OracleHAEventArgs
properties are listed in Table 8-2.
Table 8-1 OracleHAEventArgs Properties
Name | Description |
---|---|
Specifies the domain name of the database affected by the |
|
Specifies the database affected by the |
|
Specifies the host that triggered the event |
|
Specifies the instance that triggered the event |
|
Specifies the service that triggered the event |
|
Specifies the source that triggered the event |
|
Specifies the status of the source that triggered the event |
|
Specifies the time when the event was triggered on the server |
The OracleHAEventArgs
properties are listed in Table 8-2.
Table 8-2 OracleHAEventArgs Properties
Name | Description |
---|---|
Specifies the domain name of the database affected by the |
|
Specifies the database affected by the HAevent |
|
Specifies the host that triggered the event |
|
Specifies the instance that triggered the event |
|
Specifies the service that triggered the event |
|
Specifies the source that triggered the event |
|
Specifies the status of the source that triggered the event |
|
Specifies the time when the event was triggered on the server |
This property specifies the domain name of the database that is affected by the HA event.
// C# public string DatabaseDomainName {get;}
The domain name of the database that is affected by the HA Event.
This property specifies the database that is affected by the HA event.
// C# public string DatabaseName {get;}
This property specifies the database name that is affected by the HA event.
This property specifies the host that triggered the HA event.
// C# public string HostName {get;}
The host that is affected by the HA Event.
This property specifies the instance that triggered the HA event.
// C# public string InstanceName {get;}
The instance that is affected by the HA Event.
This property specifies the service that triggered the HA event.
// C# public string ServiceName {get;}
The service that is affected by the HA Event.
This property specifies the source that triggered the HA event.
// C# public OracleHAEventSource Source {get;}
The source that triggered the HA Event.
This property specifies the status of the source that triggered the HA event.
// C# public OracleHAEventStatus Status {get;}
The status of the source that triggered the HA Event.