DatabaseNotEnabledForNotificationException クラス
アセンブリ: System.Web (system.web.dll 内)

<SerializableAttribute> _ Public NotInheritable Class DatabaseNotEnabledForNotificationException Inherits SystemException
[SerializableAttribute] public sealed class DatabaseNotEnabledForNotificationException : SystemException
[SerializableAttribute] public ref class DatabaseNotEnabledForNotificationException sealed : public SystemException

SQL Server データベースに変更通知を設定する、単純な管理ページの例外ハンドラのコード例を次に示します。
例の実行に必要なコード全体については、SqlCacheDependencyAdmin クラスの概要のトピックで「例」を参照してください。
Catch ex As DatabaseNotEnabledForNotificationException enabledTables.Visible = False disableTable.Visible = False enabledTablesMsg.Text = "Cache notifications are not enabled in this database." tableName.Visible = False enableTable.Visible = False tableEnableMsg.Text = "Must enable database for notifications before enabling tables." End Try
catch (DatabaseNotEnabledForNotificationException ex) { enabledTables.Visible = false; disableTable.Visible = false; enabledTablesMsg.Text = "Cache notifications are not enabled in this database."; tableName.Visible = false; enableTable.Visible = false; tableEnableMsg.Text = "Must enable database for notifications before enabling tables"; }

System.Exception
System.SystemException
System.Web.Caching.DatabaseNotEnabledForNotificationException


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に収録されているすべての辞書からDatabaseNotEnabledForNotificationException クラスを検索する場合は、下記のリンクをクリックしてください。

- DatabaseNotEnabledForNotificationException クラスのページへのリンク