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 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

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

   

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



SqlCacheDependencyAdmin.DisableNotifications メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS