SqlCacheDependencyAdmin.DisableNotifications メソッド
アセンブリ: System.Web (system.web.dll 内)



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

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からSqlCacheDependencyAdmin.DisableNotifications メソッドを検索する場合は、下記のリンクをクリックしてください。

- SqlCacheDependencyAdmin.DisableNotifications メソッドのページへのリンク