Export (0) Print
Expand All

IObjectContextInfo2 interface

Provides additional information about an object's context. This interface extends the IObjectContextInfo interface.

When to implement

This interface is implemented by COM+.

When to use

Obtain a reference to the IObjectContextInfo2 interface by calling the CoGetObjectContext function and specifying IID_IObjectContextInfo2 as the riid parameter. You use this interface to get information about the COM+ partition, application, or application instance used by the current object context.

Members

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

Methods

The IObjectContextInfo2 interface has these methods.

MethodDescription
GetApplicationId

Retrieves the identifier of the application of the current object context.

GetApplicationInstanceId

Retrieves the identifier of the application instance of the current object context.

GetPartitionId

Retrieves the identifier of the partition of the current object context.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

ComSvcs.h

See also

COM+ Contexts and Threading Models
IObjectContextInfo

 

 

Community Additions

ADD
Show:
© 2015 Microsoft