SqlCeConnection.FlushFailure イベントとは? わかりやすく解説

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

SqlCeConnection.FlushFailure イベント

バックグラウンドでのフラッシュ失敗した場合発生します

名前空間: System.Data.SqlServerCe
アセンブリ: System.Data.SqlServerCe (system.data.sqlserverce.dll 内)
構文構文

Public Event FlushFailure As
 SqlCeFlushFailureEventHandler
Dim instance As SqlCeConnection
Dim handler As SqlCeFlushFailureEventHandler

AddHandler instance.FlushFailure, handler
public event SqlCeFlushFailureEventHandler FlushFailure
public:
event SqlCeFlushFailureEventHandler^ FlushFailure {
    void add (SqlCeFlushFailureEventHandler^ value);
    void remove (SqlCeFlushFailureEventHandler^ value);
}
/** @event */
public void add_FlushFailure (SqlCeFlushFailureEventHandler
 value)

/** @event */
public void remove_FlushFailure (SqlCeFlushFailureEventHandler
 value)
JScript では、イベント使用できますが、新規に宣言することはできません。
使用例使用例

FlushFailure イベント使用する方法の例を次に示します

Public Sub Snippet4()
    Dim conn As SqlCeConnection = Nothing

    Try
        conn = New SqlCeConnection("Data Source = MyDatabase.sdf;
 Password ='<pwd>'")
        
        AddHandler conn.FlushFailure, AddressOf
 conn_FlushFailure
       
        conn.Open()
        
        'Flush failure occurs here
        'OnFlushFailure will be called from the background thread.
       
       
    Finally
        conn.Close()
    End Try
    
End Sub

Private Sub conn_FlushFailure(ByVal
 sender As System.Object, ByVal e As
 SqlCeFlushFailureEventArgs)
    
    Dim errors As SqlCeErrorCollection = e.Errors
    Console.WriteLine("Flush Failure: " + errors(0).Message)
    
End Sub
// using System;
// using System.Xml;
// using System.Data;
// using System.Data.SqlServerCe;
// using System.Data.Common;
// using System.Windows.Forms;
/// <summary>
/// Demonstrates the usage of the FlushFailure event
/// </summary>
public class MyForm : Form
{
    public void Snippet4()
    {
                
        SqlCeConnection conn = new SqlCeConnection();
        
        conn.FlushFailure+=new SqlCeFlushFailureEventHandler(conn_FlushFailure);

        conn.Open();
        
        //Flush failure occurs here
        //OnFlushFailure will be called from the background thread.
 
        conn.Close();        
    }
    void conn_FlushFailure(object sender, SqlCeFlushFailureEventArgs
 e)
    {
        SqlCeErrorCollection errors = e.Errors;
        Console.WriteLine("Flush Failure:" + errors[0].Message);
    }
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlCeConnection クラス
SqlCeConnection メンバ
System.Data.SqlServerCe 名前空間



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

辞書ショートカット

すべての辞書の索引

SqlCeConnection.FlushFailure イベントのお隣キーワード
検索ランキング

   

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



SqlCeConnection.FlushFailure イベントのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS