Compensator.PrepareRecord メソッド
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)

Dim instance As Compensator Dim rec As LogRecord Dim returnValue As Boolean returnValue = instance.PrepareRecord(rec)
戻り値
配信されたレコードを認識しないようにする必要がある場合は true。それ以外の場合は false。

Public Overrides Function PrepareRecord(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 ' The record is valid. receivedPrepareRecord = True Return False End Function 'PrepareRecord
public override bool PrepareRecord (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); // The record is valid. receivedPrepareRecord = true; return(false); }
public: virtual bool PrepareRecord(LogRecord^ log) override { // Check the validity of the record. if (log == nullptr) { return false; } array<Object^>^ record = dynamic_cast<array<Object^>^>(log->Record); if (record == nullptr) { return false; } if (record->Length != 2) { return false; } // The record is valid. receivedPrepareRecord = true; return true; }
public boolean PrepareRecord(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; } // The record is valid. receivedPrepareRecord = true; return false; } //PrepareRecord


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

- Compensator.PrepareRecord メソッドのページへのリンク