SqlNotificationRequest 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示对给定命令的通知的请求。
public ref class SqlNotificationRequest sealedpublic sealed class SqlNotificationRequesttype SqlNotificationRequest = classPublic NotInheritable Class SqlNotificationRequest- 继承
- 
				SqlNotificationRequest
注解
此类提供对 SQL Server 2005 公开的查询通知服务的低级别访问。 对于大多数应用程序, SqlDependency 类提供了一种更简单的查询通知使用方法。 但是,如果需要对通知的发生时间进行精细控制,或者需要自定义作为通知的一部分返回的消息数据,则 SqlNotificationRequest 类是要使用的类。
构造函数
| SqlNotificationRequest() | 使用默认值创建 SqlNotificationRequest 类的新实例。 | 
| SqlNotificationRequest(String, String, Int32) | 使用用户定义的字符串创建 SqlNotificationRequest 类的新实例,该字符串标识特定的通知请求、预定义的 SQL Server 2005 Service Broker 服务名以及(以秒来计算)超时时间。 | 
属性
| Options | 获取或设置发送通知消息的 SQL Server Service Broker 服务名。 | 
| Timeout | 获取或设置一个值,该值指定在操作超时之前,SQL Server 等待发生更改的时间。 | 
| UserData | 获取或设置此通知的应用程序特定的标识符。 | 
方法
| Equals(Object) | 确定指定对象是否等于当前对象。(继承自 Object) | 
| GetHashCode() | 作为默认哈希函数。(继承自 Object) | 
| GetType() | 获取当前实例的 Type。(继承自 Object) | 
| MemberwiseClone() | 创建当前 Object 的浅表副本。(继承自 Object) | 
| ToString() | 返回表示当前对象的字符串。(继承自 Object) |