AuditTrail Property
AuditTrail Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Contains a pointer to the current object bound to the process instance that implements the IAuditTrail interface. This property is read-only.
Applies To
Type Library
Microsoft CDO Workflow Objects for Microsoft Exchange
DLL Implemented In
CDOWF.DLL
Syntax
[Visual Basic]Property AuditTrail As AuditTrailEventLog
[C++]HRESULT get_AuditTrail(IAuditTrail** varAuditTrail);
Parameters
- varAuditTrail
Returned reference to an IAuditTrail Interface.
Example
The following code shows how to get the read-only AuditTrail property of ProcessInstance and use it to add an entry to an application log.
[C++]
/* 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()); }
See Also
Send us your feedback about the Microsoft Exchange Server 2003 SDK.
Build: June 2007 (2007.618.1)
© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.