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.

IObjectContextActivity interface

Retrieves the activity identifier associated with the current object context.

When to implement

COM+ implements this interface.

When to use

Use this interface to retrieve the activity identifier associated with the current object context. This activity identifier is a GUID and is valid only for the lifetime of the activity.

Members

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

Methods

The IObjectContextActivity interface has these methods.

MethodDescription
GetActivityID

Retrieves the GUID associated with the current activity.

 

Remarks

You obtain a reference to an object's IObjectContextActivity interface by calling QueryInterface on the object's context, as in the following example:

hr = m_pIObjectContext->QueryInterface(
            IID_IObjectContextActivity, 
            (void**)&m_pIObjectContextActivity);

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ComSvcs.h

See also

IObjectContext

 

 

Community Additions

Show:
© 2017 Microsoft