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)

適用於

另請參閱