Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IContext interface

Supports setting COM+ context properties.

When to implement

You should not implement this interface. The standard COM+ context object implements this interface.

When to use

Use this interface to add, remove, access, or enumerate COM+ context properties.

To use IContext and its methods, its necessary to include a define of the USE_COM_CONTEXT_DEF system macro in the source code.

Members

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

Methods

The IContext interface has these methods.

MethodDescription
EnumContextProps

Returns an IEnumContextProps interface pointer that can be used to enumerate the context properties in this context.

GetProperty

Retrieves the specified context property from the context.

RemoveProperty

Removes the specified context property from the context.

SetProperty

Adds the specified context property to the object context.

 

Remarks

An instance of this interface for the current context can be obtained using CoGetObjectContext.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IContext is defined as 000001c0-0000-0000-C000-000000000046

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.