Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IObjectContextInfo 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.

This interface has been superseded by the IObjectContextInfo2 interface.

When to implement

You should not implement this interface. The standard implementation provides complete functionality.

When to use

Obtain a reference to the IObjectContextInfo interface by calling the CoGetObjectContext function and specifying IID_IObjectContextInfo as the riid parameter. Use this interface to track object context information based on a specific transaction, activity, or context.

Members

The IObjectContextInfo interface inherits from the IUnknown interface. IObjectContextInfo also has these types of members:

Methods

The IObjectContextInfo interface has these methods.

MethodDescription
GetActivityId

Retrieves the identifier of the current activity.

GetContextId

Retrieves the identifier of the current context.

GetTransaction

Retrieves a reference to the current transaction.

GetTransactionId

Retrieves the identifier of the current transaction.

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

CoGetObjectContext
COM+ Contexts and Threading Models
IObjectContextInfo2

 

 

Community Additions

Show:
© 2017 Microsoft