SqlNotificationRequestとは? わかりやすく解説

SqlNotificationRequest クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

指定したコマンドに対する通知の要求を表します。

名前空間: System.Data.Sql
アセンブリ: System.Data (system.data.dll 内)
構文構文

Public NotInheritable Class
 SqlNotificationRequest
Dim instance As SqlNotificationRequest
public sealed class SqlNotificationRequest
public ref class SqlNotificationRequest sealed
public final class SqlNotificationRequest
public final class SqlNotificationRequest
解説解説
継承階層継承階層
System.Object
  System.Data.Sql.SqlNotificationRequest
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

SqlNotificationRequest コンストラクタ ()

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

既定値を使用して SqlNotificationRequest クラスの新しいインスタンスを作成します。

名前空間: System.Data.Sql
アセンブリ: System.Data (system.data.dll 内)
構文構文

Dim instance As New SqlNotificationRequest
public SqlNotificationRequest ()
public:
SqlNotificationRequest ()
public SqlNotificationRequest ()
public function SqlNotificationRequest ()
解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlNotificationRequest クラス
SqlNotificationRequest メンバ
System.Data.Sql 名前空間
その他の技術情報
クエリ通知機能の使用

SqlNotificationRequest コンストラクタ (String, String, Int32)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

特定の通知要求、定義済みの SQL Server 2005 Service Broker のサービス名、および秒単位で計測されるタイムアウト期限を指定するユーザー定義の文字列を使用して、SqlNotificationRequest クラスの新しいインスタンスを作成します。

名前空間: System.Data.Sql
アセンブリ: System.Data (system.data.dll 内)
構文構文

Public Sub New ( _
    userData As String, _
    options As String, _
    timeout As Integer _
)
Dim userData As String
Dim options As String
Dim timeout As Integer

Dim instance As New SqlNotificationRequest(userData,
 options, timeout)
public SqlNotificationRequest (
    string userData,
    string options,
    int timeout
)
public:
SqlNotificationRequest (
    String^ userData, 
    String^ options, 
    int timeout
)
public SqlNotificationRequest (
    String userData, 
    String options, 
    int timeout
)
public function SqlNotificationRequest (
    userData : String, 
    options : String, 
    timeout : int
)

パラメータ

userData

この通知に対するアプリケーション固有の ID が含まれる文字列。これは通知のインフラストラクチャでは使用されませんが、これによって通知をアプリケーション状態に関連付けることができます。このパラメータが示す値は、Service Broker のキュー メッセージに含まれます。

options

通知メッセージのポストが行われる Service Broker のサービス名が含まれる文字列。この文字列には、サービス名検索のスコープを特定のデータベースに制限するデータベース名、または Service Broker インスタンスの GUID が含まれる必要があります。

options パラメータの形式の詳細については、Options のトピックを参照してください。

timeout

通知メッセージの待機時間 (秒)。

例外例外
例外の種類条件

ArgumentNullException

options パラメータの値が NULL です。

InvalidArgumentException

options パラメータまたは userData パラメータが uint16.MaxValue を超えています。

ArgumentOutOfRangeException

timeout パラメータの値が 0 未満です。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlNotificationRequest クラス
SqlNotificationRequest メンバ
System.Data.Sql 名前空間
その他の技術情報
クエリ通知機能の使用

SqlNotificationRequest コンストラクタ

SqlNotificationRequest クラスの新しいインスタンスを作成します。
オーバーロードの一覧オーバーロードの一覧

参照参照

関連項目

SqlNotificationRequest クラス
SqlNotificationRequest メンバ
System.Data.Sql 名前空間

その他の技術情報

クエリ通知機能の使用

SqlNotificationRequest プロパティ


SqlNotificationRequest メソッド


SqlNotificationRequest メンバ

指定したコマンドに対する通知の要求を表します。

SqlNotificationRequest データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド SqlNotificationRequest オーバーロードされます。 SqlNotificationRequest クラスの新しいインスタンスを作成します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SqlNotificationRequest クラス
System.Data.Sql 名前空間

その他の技術情報

クエリ通知機能の使用



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「SqlNotificationRequest」の関連用語

SqlNotificationRequestのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SqlNotificationRequestのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS