閱讀英文 編輯

共用方式為


SqlNotificationEventArgs Class

Definition

Caution

Use the Microsoft.Data.SqlClient package instead.

Represents the set of arguments passed to the notification event handler.

public class SqlNotificationEventArgs : EventArgs
[System.Obsolete("Use the Microsoft.Data.SqlClient package instead.")]
public class SqlNotificationEventArgs : EventArgs
Inheritance
SqlNotificationEventArgs
Attributes

Constructors

Properties

Info

Gets a value that indicates the reason for the notification event, such as a row in the database being modified or a table being truncated.

Source

Gets a value that indicates the source that generated the notification, such as a change to the query data or the database's state.

Type

Gets a value that indicates whether this notification is generated because of an actual change, or by the subscription.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

產品 版本 (已淘汰)
.NET 6 (package-provided) (8 (package-provided))
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 (4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided))
.NET Standard (2.0 (package-provided))

See also