SqlNotificationRequest 類別

定義

代表對特定指令的通知請求。

public ref class SqlNotificationRequest sealed
public sealed class SqlNotificationRequest
type SqlNotificationRequest = class
Public NotInheritable Class SqlNotificationRequest
繼承
SqlNotificationRequest

備註

此類別提供對 SQL Server 2005 所暴露的查詢通知服務的低階存取。 對大多數應用來說,這個 SqlDependency 類別提供了更簡單的查詢通知使用方式。 不過,如果你需要細緻控制通知何時發生,或需要自訂通知中回傳的訊息資料, SqlNotificationRequest 類別是最佳選擇。

建構函式

名稱 Description
SqlNotificationRequest()

建立一個新的類別實例 SqlNotificationRequest ,並保留預設值。

SqlNotificationRequest(String, String, Int32)

建立一個新的類別實例 SqlNotificationRequest ,包含使用者定義的字串,該字串可識別特定通知請求、預先定義的 SQL Server 2005 Service Broker 服務名稱名稱,以及以秒為單位的逾時時間。

屬性

名稱 Description
Options

取得或設定 SQL Server Service Broker 服務名稱,並發布通知訊息。

Timeout

取得或設定一個值,指定 SQL Server 等待變更發生的時間,直到操作逾時。

UserData

接收或設定此通知的應用程式專用識別碼。

方法

名稱 Description
Equals(Object)

判斷指定的 物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於

另請參閱