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.
The IObjectContextActivity interface inherits from the IUnknown interface. IObjectContextActivity also has these types of members:
The IObjectContextActivity interface has these methods.
Retrieves the GUID associated with the current activity.
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);
Minimum supported client
|Windows 2000 Professional [desktop apps only]|
Minimum supported server
|Windows 2000 Server [desktop apps only]|