TableNotEnabledForNotificationExceptionとは? わかりやすく解説

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

TableNotEnabledForNotificationException クラス

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

変更通知有効になっていないデータベース テーブルに対して SqlCacheDependency クラス使用されたときにスローされる例外

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

<SerializableAttribute> _
Public NotInheritable Class
 TableNotEnabledForNotificationException
    Inherits SystemException
Dim instance As TableNotEnabledForNotificationException
[SerializableAttribute] 
public sealed class TableNotEnabledForNotificationException
 : SystemException
[SerializableAttribute] 
public ref class TableNotEnabledForNotificationException
 sealed : public SystemException
/** @attribute SerializableAttribute() */ 
public final class TableNotEnabledForNotificationException
 extends SystemException
SerializableAttribute 
public final class TableNotEnabledForNotificationException
 extends SystemException
使用例使用例

SqlCacheDependency オブジェクト作成しSqlCacheDependency オブジェクト依存する Cache に項目を追加するコード例次に示しますSQL Server データベース テーブル依存関係通知有効になっていない場合は、TableNotEnabledForNotificationExceptionスローされ、SqlCacheDependencyAdmin.EnableTableForNotifications メソッド呼び出して処理されます。

Sub Page_Load(Src As Object,
 E As EventArgs)
   ' Declare the SqlCacheDependency instance, SqlDep.
   Dim SqlDep As SqlCacheDependency

   ' Check the Cache for the SqlSource key.
   ' If it isn't there, create it with a dependency
   ' on a SQL Server table using the SqlCacheDependency class.
   If Cache("SqlSource") Is
 Nothing

      ' Because of possible exceptions thrown when this
      ' code runs, use Try...Catch...Finally syntax.
      Try
         ' Instantiate SqlDep using the SqlCacheDependency constructor.
         SqlDep = New SqlCacheDependency("Northwind",
 "Categories")

      ' Handle the DatabaseNotEnabledForNotificationException with
      ' a call to the SqlCacheDependencyAdmin.EnableNotifications method.
      Catch exDBDis As DatabaseNotEnabledForNotificationException
         Try
            SqlCacheDependencyAdmin.EnableNotifications("Northwind")

         ' If the database does not have permissions set for creating
 tables,
         ' the UnauthorizedAccessException is thrown. Handle it by redirecting
         ' to an error page.
         Catch exPerm As UnauthorizedAccessException
             Response.Redirect(".\ErrorPage.htm")
         End Try

      ' Handle the TableNotEnabledForNotificationException with
            ' a call to the SqlCacheDependencyAdmin.EnableTableForNotifications
 method.
      Catch exTabDis As TableNotEnabledForNotificationException
         Try
            SqlCacheDependencyAdmin.EnableTableForNotifications( _
             "Northwind", "Categories")

         ' If a SqlException is thrown, redirect to an error page.
         Catch exc As SqlException
             Response.Redirect(".\ErrorPage.htm")
         End Try

      ' If all the other code is successful, add MySource to the Cache
      ' with a dependency on SqlDep. If the Categories table changes
,
      ' MySource will be removed from the Cache. Then generate a message
            ' that the data is newly created and added to the cache.
      Finally
         Cache.Insert("SqlSource", Source1, SqlDep)
            CacheMsg.Text = "The data object was created explicitly."

      End Try

    Else
       CacheMsg.Text = "The data was retrieved from the Cache."
    End If
End Sub
継承階層継承階層
System.Object
   System.Exception
     System.SystemException
      System.Web.Caching.TableNotEnabledForNotificationException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TableNotEnabledForNotificationException メンバ
System.Web.Caching 名前空間

TableNotEnabledForNotificationException コンストラクタ ()

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

TableNotEnabledForNotificationException クラス新しインスタンス初期化します。

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

Dim instance As New TableNotEnabledForNotificationException
public TableNotEnabledForNotificationException ()
public:
TableNotEnabledForNotificationException ()
public TableNotEnabledForNotificationException ()
public function TableNotEnabledForNotificationException
 ()
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TableNotEnabledForNotificationException クラス
TableNotEnabledForNotificationException メンバ
System.Web.Caching 名前空間

TableNotEnabledForNotificationException コンストラクタ (String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

TableNotEnabledForNotificationException クラス新しインスタンスを、指定したエラー メッセージ使用して初期化します。

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

Dim message As String

Dim instance As New TableNotEnabledForNotificationException(message)
public TableNotEnabledForNotificationException (
    string message
)
public:
TableNotEnabledForNotificationException (
    String^ message
)
public TableNotEnabledForNotificationException (
    String message
)
public function TableNotEnabledForNotificationException
 (
    message : String
)

パラメータ

message

エラー説明するメッセージ

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

TableNotEnabledForNotificationException コンストラクタ

TableNotEnabledForNotificationException クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
TableNotEnabledForNotificationException () TableNotEnabledForNotificationException クラス新しインスタンス初期化します。
TableNotEnabledForNotificationException (String) TableNotEnabledForNotificationException クラス新しインスタンスを、指定したエラー メッセージ使用して初期化します。
TableNotEnabledForNotificationException (String, Exception) 指定したエラー メッセージと、この例外原因である内部例外への参照使用してTableNotEnabledForNotificationException クラス新しインスタンス初期化します。
参照参照

関連項目

TableNotEnabledForNotificationException クラス
TableNotEnabledForNotificationException メンバ
System.Web.Caching 名前空間

TableNotEnabledForNotificationException コンストラクタ (String, Exception)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

指定したエラー メッセージと、この例外原因である内部例外への参照使用して、TableNotEnabledForNotificationException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    innerException As Exception _
)
Dim message As String
Dim innerException As Exception

Dim instance As New TableNotEnabledForNotificationException(message,
 innerException)
public TableNotEnabledForNotificationException (
    string message,
    Exception innerException
)
public:
TableNotEnabledForNotificationException (
    String^ message, 
    Exception^ innerException
)
public TableNotEnabledForNotificationException (
    String message, 
    Exception innerException
)
public function TableNotEnabledForNotificationException
 (
    message : String, 
    innerException : Exception
)

パラメータ

message

例外原因説明するエラー メッセージ

innerException

現在の例外の原因である例外innerExceptionnull 参照 (Visual Basic では Nothing) でない場合は、内部例外処理する catch ブロック現在の例外が発生します

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

TableNotEnabledForNotificationException プロパティ


TableNotEnabledForNotificationException メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

TableNotEnabledForNotificationException クラス
System.Web.Caching 名前空間

TableNotEnabledForNotificationException メンバ

変更通知有効になっていないデータベース テーブルに対して SqlCacheDependency クラス使用されたときにスローされる例外

TableNotEnabledForNotificationException データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド TableNotEnabledForNotificationException オーバーロードされます。 TableNotEnabledForNotificationException クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

TableNotEnabledForNotificationException クラス
System.Web.Caching 名前空間



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

辞書ショートカット

すべての辞書の索引

「TableNotEnabledForNotificationException」の関連用語

TableNotEnabledForNotificationExceptionのお隣キーワード
検索ランキング

   

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



TableNotEnabledForNotificationExceptionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS