JVCL Help:DP ReleaseConsumerContext

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Deselects the current consumer and context, reselecting any previous selected consumer and context.

run\JvDataProvider.pas


Pascal

 run\JvDataProvider.pas
 procedureDP_ReleaseConsumerContext(Provider: IJvDataProvider);


Parameters

Parameters Description
Provider: IJvDataProvider Reference to the IJvDataProvider to select a new consumer and context for.

run\JvDataProvider.pas


Description

DP_ReleaseConsumerContext deselects the currently active consumer and context pair, reactivating the consumer and context pair that was active before it.
This routine in combination with DP_SelectConsumerContext allows the selection/deselection of a consumer and it's active context to be performed atomically. If one of the deselection actions fails, the other will be reverted automatically.
Most consumers will use this routine to deselect itself and it's associated context from the provider when they no longer need access to the provider.

run\JvDataProvider.pas


See Also

DP_SelectConsumerContext, IJvDataProvider.ReleaseConsumer, IJvDataProvider.ReleaseContext

run\JvDataProvider.pas


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page