SqlNotificationRequest 類別

定義

表示指定之命令的告知要求。

public ref class SqlNotificationRequest sealed
public sealed class SqlNotificationRequest
type SqlNotificationRequest = class
Public 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)

適用於

另請參閱