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

LogRecord クラス

COM+ CrmLogRecordRead 構造体として配信された非構造化ログ レコード表します。このクラス継承できません。

名前空間: System.EnterpriseServices.CompensatingResourceManager
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文構文

Public NotInheritable Class
 LogRecord
public sealed class LogRecord
public final class LogRecord
解説解説
使用例使用例

このクラス使用方法コード例次に示します

Public Overrides Function
 AbortRecord(ByVal log As LogRecord) As
 Boolean 
    
    ' Check the validity of the record.
    If log Is Nothing Then
        Return True
    End If
    Dim record As [Object]() = log.Record
    
    If record Is Nothing
 Then
        Return True
    End If
    If record.Length <> 2 Then
        Return True
    End If 
    ' Extract old account data from the record.
    Dim filename As String
 = CStr(record(0))
    Dim balance As Integer
 = Fix(record(1))
    
    ' Restore the old state of the account.
    AccountManager.WriteAccountBalance(filename, balance)
    
    Return False

End Function 'AbortRecord

public override bool AbortRecord (LogRecord
 log)
{

    // Check the validity of the record.
    if (log == null) return(true);
    Object[] record = log.Record as Object[];
    if (record == null) return(true);
    if (record.Length != 2) return(true);

    // Extract old account data from the record.
    string filename = (string) record[0];
    int balance = (int) record[1];
 
    // Restore the old state of the account.
    AccountManager.WriteAccountBalance(filename, balance);

    return(false);
}
public:
    virtual bool AbortRecord(LogRecord^ log) override
    {

        // Check the validity of the record.
        if (log == nullptr)
        {
            return true;
        }
        array<Object^>^ record = dynamic_cast<array<Object^>^>(log->Record);
        if (record == nullptr)
        {
            return true;
        }
        if (record->Length != 2)
        {
            return true;
        }

        // Extract old account data from the record.
        String^ filename = (String^) record[0];
        int balance = (int) record[1];

        // Restore the old state of the account.
        WriteAccountBalance(filename, balance);

        return false;
    }
public boolean AbortRecord(LogRecord log)
{
    // Check the validity of the record.
    if (log == null) {
        return true;
    }
    Object record[] = new Object[] { log.get_Record() };

    if (record == null) {
        return true;
    }
    if (record.get_Length() != 2) {
        return true;
    }
    // Extract old account data from the record.
    String fileName = (String)(record.get_Item(0));
    int balance = System.Convert.ToInt32(record[1]);

    // Restore the old state of the account.
    AccountManager.WriteAccountBalance(fileName, balance);

    return false;
} //AbortRecord
継承階層継承階層
System.Object
  System.EnterpriseServices.CompensatingResourceManager.LogRecord
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LogRecord メンバ
System.EnterpriseServices.CompensatingResourceManager 名前空間

LogRecord プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

LogRecord クラス
System.EnterpriseServices.CompensatingResourceManager 名前空間

LogRecord メソッド


LogRecord メンバ

COM+ CrmLogRecordRead 構造体として配信された非構造化ログ レコード表します。このクラス継承できません。

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


パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

LogRecord クラス
System.EnterpriseServices.CompensatingResourceManager 名前空間



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

辞書ショートカット

すべての辞書の索引

「LogRecord」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS