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
/** @attribute SerializableAttribute() */ public final class DatabaseNotEnabledForNotificationException extends SystemException
SerializableAttribute public final class DatabaseNotEnabledForNotificationException extends 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- DatabaseNotEnabledForNotificationException クラスのページへのリンク