Export (0) Print
Expand All

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

ADD
Show:
© 2014 Microsoft