Export (0) Print
Expand All

ContextInfo interface

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.

When to implement

COM+ implements this interface.

When to use

Use this interface to track object context information based on a specific transaction, activity, or context.

To obtain a reference to ContextInfo, get the ContextInfo property of an object's ObjectContext.

Members

The ContextInfo interface inherits from the IDispatch interface. ContextInfo also has these types of members:

Methods

The ContextInfo interface has these methods.

MethodDescription
GetActivityId

Retrieves the activity identifier associated with the object context.

GetContextId

Retrieves the unique identifier of this object context.

GetTransaction

Retrieves the object context's transaction object.

GetTransactionId

Retrieves the transaction identifier associated with the object context.

IsInTransaction

Indicates whether the current object is executing in a transaction.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ComSvcs.h

See also

COM+ Contexts and Threading Models
IObjectContext
IObjectContextInfo
ObjectContext

 

 

Community Additions

ADD
Show:
© 2014 Microsoft