Working with State and Components

Although the context of the object is kept, it does not keep track of the internal settings of the component. This is known as the state of the component. Therefore, if you have public properties set on the component and then tell MTS that you are finished with the component (by a SetComplete or SetAbort), it will not know about those properties the next time you use the component. The alternative is to not tell MTS that you are finished until the very end of your procedures. The disadvantage is that MTS cannot reuse this resource until you are finished, which in turn can affect your scalability.

State involves the internal data of a component. This typically involves information that is stored in a component ...

Get Sams Teach Yourself Microsoft® Windows® DNA Programming in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.