SqlCacheDependencyAdmin.DisableNotifications メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SqlCacheDependencyAdmin.DisableNotifications メソッドの意味・解説 

SqlCacheDependencyAdmin.DisableNotifications メソッド

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

指定されているデータベースの SqlCacheDependency 変更通知を無効にします。

名前空間: System.Web.Caching
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Shared Sub DisableNotifications
 ( _
    connectionString As String _
)
Dim connectionString As String

SqlCacheDependencyAdmin.DisableNotifications(connectionString)
public static void DisableNotifications
 (
    string connectionString
)
public:
static void DisableNotifications (
    String^ connectionString
)
public static void DisableNotifications
 (
    String connectionString
)
public static function DisableNotifications
 (
    connectionString : String
)

パラメータ

connectionString

SQL Server データベースに接続するときに使用する接続文字列。

例外例外
解説解説

DisableNotifications メソッドは、connectionString パラメータで指定されているデータベースの変更通知のサポートを無効にします。DisableNotifications メソッドを実行した後で、データベースの変更通知をもう一度有効にする場合は、EnableNotifications メソッドを実行する必要があります。

使用例使用例

DisableNotifications メソッドを使用して、接続文字列 MyConnectionString で指定されているデータベースの変更通知を無効にするコード例を次に示します。

例の実行に必要なコード全体については、SqlCacheDependencyAdmin クラスの概要のトピックで「例」を参照してください。

' Create a method to disable SqlCacheDependency
' change notifications for the Northwind database.
Public Sub DisableDatabase_Click( _
 sender As Object, e As
 System.EventArgs)

   SqlCacheDependencyAdmin.DisableNotifications( _
   "Northwind")
   Response.Write("Northwind database disabled at "
 _
   & DateTime.Now.ToString())

   ' An HttpException is thrown if adequate permissions to
   ' modify the database are not granted.

End Sub
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlCacheDependencyAdmin クラス
SqlCacheDependencyAdmin メンバ
System.Web.Caching 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「SqlCacheDependencyAdmin.DisableNotifications メソッド」の関連用語

SqlCacheDependencyAdmin.DisableNotifications メソッドのお隣キーワード
検索ランキング

   

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



SqlCacheDependencyAdmin.DisableNotifications メソッドのページの著作権

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

©2026 GRAS Group, Inc.RSS