Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Contains a pointer to the current object bound to the process instance that implements the IAuditTrail interface.
(Read-only)
[Visual Basic,VBScript] Property AuditTrail As AuditTrailEventLog read-only [C++] HRESULT AuditTrail(IAuditTrail** varAuditTrail); [IDL] HRESULT AuditTrail([out, retval] IAuditTrail** varAuditTrail);
(Read-only)
The following code shows how to get the read-only AuditTrail property of the ProcessInstance and use it to add an entry to an application log.
/* assume that a ProcessInstance is created and an audit trail object is bound to the ProcessInstance */ CComPtr<IAuditTrail> pAuditTrail; if(SUCCEEDED(hr = pProcessInstance->get_AuditTrail(&pAuditTrail))) { CComBSTR bsErrDesc(L"Your error description"); hr = pAuditTrail->AddEntry(bsErrDesc, E_FAIL, cdowfATECustom, CComVariant()); }