Class NpgsqlNotificationEventArgs
Provides information on a PostgreSQL notification. Notifications are sent when your connection has registered for notifications on a specific channel via the LISTEN command. NOTIFY can be used to generate such notifications, allowing for an inter-connection communication channel.
Inheritance
System.Object
System.EventArgs
NpgsqlNotificationEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Npgsql
Assembly: Npgsql.dll
Syntax
public sealed class NpgsqlNotificationEventArgs : EventArgs
Properties
AdditionalInformation
An optional payload string that was sent with this notification.
Declaration
public string AdditionalInformation { get; }
Property Value
Type | Description |
---|---|
System.String |
Condition
The channel on which the notification was sent.
Declaration
public string Condition { get; }
Property Value
Type | Description |
---|---|
System.String |
PID
Process ID of the PostgreSQL backend that sent this notification.
Declaration
public int PID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |