SqlNotificationType 枚举

定义

描述 OnChangeEventHandler 事件处理程序可通过 SqlNotificationEventArgs 参数接收的不同通知类型。

public enum class SqlNotificationType
public enum SqlNotificationType
type SqlNotificationType = 
Public Enum SqlNotificationType
继承
SqlNotificationType

字段

名称 说明
Unknown -1

当客户端无法识别服务器发送的类型选项时使用。

Change 0

正在监视的服务器上的数据已更改。 使用该 SqlNotificationInfo 项确定更改的详细信息。

Subscribe 1

创建通知订阅失败。 SqlNotificationEventArgs使用对象的SqlNotificationInfo项来确定失败的原因。

注解

枚举 SqlNotificationType 由类的 SqlNotificationEventArgs 实例引用。 当使用 SqlDependency 类触发通知事件时,会提供此信息。

适用于

另请参阅