UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:oleidl.IOleLink.Update |
IOleLink::Update (oleidl.h) |
Updates the compound document's cached data for a linked object. This involves binding to the link source, if it is not already bound. |
|
com\iolelink_update.htm |
com |
c1da8b95-88e7-42b0-884c-5aa394cc49f4 |
12/05/2018 |
IOleLink interface [COM],Update method, IOleLink.Update, IOleLink::Update, Update, Update method [COM], Update method [COM],IOleLink interface, _ole_iolelink_update, com.iolelink_update, oleidl/IOleLink::Update |
oleidl.h |
Windows |
Windows 2000 Professional [desktop apps only] |
Windows 2000 Server [desktop apps only] |
OleIdl.Idl |
Windows |
19H1 |
|
|
|
|
|
|
Updates the compound document's cached data for a linked object. This involves binding to the link source, if it is not already bound.
A pointer to the IBindCtx interface on the bind context to be used in binding the link source. This parameter can be NULL. The bind context caches objects bound during the binding process, contains parameters that apply to all operations using the bind context, and provides the means by which the binding implementation should retrieve information about its environment. For more information, see IBindCtx.
This method returns S_OK on success. Other possible return values include the following.
Return code | Description |
---|---|
|
The bind operation worked but no caches were updated. |
|
The bind operation worked but not all caches were updated. |
|
Unable to bind to the link source. |
The end user can update the cached data for a linked object by choosing the Update Now button in the Links dialog box. If you use the OleUIEditLinks function to display the Links dialog box, you must implement the IOleUILinkContainer interface. The dialog box calls your implementations of IOleUILinkContainer::UpdateLink when the end user chooses the Update Now button. Your implementation of that method can call Update.
Your container application can also call Update to update a linked object, because that method calls Update when it is called on a linked object.
This method updates both automatic links and manual links. For manual links, calling Update or Update is the only way to update the caches. For more information on automatic and manual links, see IOleLink::SetUpdateOptions.
If pbc is non-NULL, the linked object's implementation of Update calls IBindCtx::RegisterObjectBound to register the bound link source. This ensures that the link source remains running until the bind context is released.The current caches are left intact if the link source cannot be bound.