ContextInfo interface (comsvcs.h)
Retrieves transaction, activity, and context information on the current context object. Using the methods of this interface, you can retrieve relevant information contained within an object context.
ContextInfo and IObjectContextInfo provide the same functionality, but unlike IObjectContextInfo, ContextInfo is compatible with Automation.
In COM+ 1.5, released with Windows XP, the ContextInfo interface is superseded by the ContextInfo2 interface.
Inheritance
The ContextInfo interface inherits from the IDispatch interface. ContextInfo also has these types of members:
Methods
The ContextInfo interface has these methods.
ContextInfo::GetActivityId Retrieves the activity identifier associated with the object context. |
ContextInfo::GetContextId Retrieves the unique identifier of this object context. |
ContextInfo::GetTransaction Retrieves the object context's transaction object. |
ContextInfo::GetTransactionId Retrieves the transaction identifier associated with the object context. Objects in the same transaction share the same transaction identifier. |
ContextInfo::IsInTransaction Indicates whether the current object is executing in a transaction. (ContextInfo.IsInTransaction) |
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 |