ObjectContext interface (comsvcs.h)
Provides access to the current object's context. An object's context is primarily used when working with transactions or dealing with the security of an object.
ObjectContext and IObjectContext provide the same functionality, but unlike IObjectContext, ObjectContext is compatible with Automation.
The ObjectContext interface inherits from the IDispatch interface. ObjectContext also has these types of members:
The ObjectContext interface has these methods.
Creates an object using current object's context. (ObjectContext.CreateInstance)
Declares that the object's transactional updates are inconsistent and cannot be committed in their present state.
Declares that the current object's work is not necessarily finished but that its transactional updates are consistent and could be committed in their present form.
Retrieves an enumerator for the named context object properties.
Retrieves the context information object of the current object's context.
Retrieves the number of named context object properties.
Retrieves a named property.
Retrieves the security object of the current object's context.
Indicates whether the object's direct caller is in a specified role (either directly or as part of a group). (ObjectContext.IsCallerInRole)
Indicates whether the current object is executing in a transaction. (ObjectContext.IsInTransaction)
Indicates whether security is enabled for the current object.
Declares that the transaction in which the object is executing must be aborted and that the object should be deactivated on return.
Declares that the transaction in which the object is executing can be committed and that the object should be deactivated on return.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|