Share via


SqlNotificationRequest.Options 屬性

定義

取得或設定公佈告知訊息的 SQL Server Service Broker 服務名稱。

public:
 property System::String ^ Options { System::String ^ get(); void set(System::String ^ value); };
public string Options { get; set; }
member this.Options : string with get, set
Public Property Options As String

屬性值

string,包含公佈告知訊息的 SQL Server 2005 Service Broker 服務名稱,以及限制伺服器名稱查閱範圍的資料庫或 Service Broker 執行個體 GUID。

例外狀況

值為 Null。

值的長度超過 uint16.MaxValue

備註

屬性的值 Options 具有下列格式:

service=<service-name>{;(local database=<database>|broker instance=<broker instance>)}

例如,如果您在資料庫 「AdventureWorks」 中使用服務 「myservice」,格式為:

service=myservice;local database=AdventureWorks

必須先在伺服器上設定 SQL Server Service Broker 服務。 此外,必須定義 Service Broker 服務和佇列,並視需要授與安全性存取權。 如需詳細資訊,請參閱 SQL Server 2005 檔。

適用於

另請參閱