Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IContextState interface

Controls object deactivation and transaction voting by manipulating context state flags. By calling the methods of this interface, you can set consistent and done flags independently of each other and get the current status of each flag. Also, the methods of this interface return errors that indicate the absence of just-in-time (JIT) activation or the absence of a transaction.

When to implement

You should not implement this interface. The standard implementation provides complete functionality.

When to use

Although you can already set the consistent and done flags using methods exposed by the IObjectContext interface, you can manipulate both flags only at the same time. The IContextState interface provides finer control, allowing you to set each flag independently of the other.

Members

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

Methods

The IContextState interface has these methods.

MethodDescription
GetDeactivateOnReturn

Retrieves the value of the done flag.

GetMyTransactionVote

Retrieves the value of the consistent flag.

SetDeactivateOnReturn

Sets the done flag, which controls whether the object deactivates on method return.

SetMyTransactionVote

Sets the consistent flag.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ComSvcs.h

See also

Consistent and Done Flags

 

 

Community Additions

Show:
© 2017 Microsoft