WorkbookBase.UpdateLinks Property
Visual Studio 2012
Gets or sets a value that indicates a workbook's setting for updating embedded OLE links.
Assembly: Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
The following code example uses the UpdateLinks property to display how embedded OLE links are updated in the workbook.
This example is for a document-level customization.
private void DisplayLinkUpdateType() { switch (this.UpdateLinks) { case Excel.XlUpdateLinks.xlUpdateLinksAlways: MessageBox.Show("Links will always be updated."); break; case Excel.XlUpdateLinks.xlUpdateLinksNever: MessageBox.Show("Links will never be updated."); break; case Excel.XlUpdateLinks.xlUpdateLinksUserSetting: MessageBox.Show("Links will update according " + "to the user settting."); break; } }
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.