ICrmLogControl::WriteLogRecordVariants method (comsvcs.h)

The CRM Worker and CRM Compensator use this method to write structured log records to the log.

Syntax

HRESULT WriteLogRecordVariants(
  [in] VARIANT *pLogRecord
);

Parameters

[in] pLogRecord

A pointer to a Variant array of Variants. This must be a single-dimension array whose lower bound is zero.

Return value

This method can return the following values.

Return code Description
S_OK
The method completed successfully.
E_INVALIDARG
One of the arguments is incorrect.
E_POINTER
A NULL pointer was provided as an argument.
XACT_E_WRONGSTATE
This method was called in the wrong state; either before RegisterCompensator or when the transaction is completing (CRM Worker).
XACT_E_ABORTED
The transaction has aborted, most likely because of a transaction time-out.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

ICrmLogControl