Gets or sets a value that indicates whether the ControlSite is automatically loaded when the workbook that contains it is opened.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
This property is ignored by ActiveX controls. ActiveX controls are always loaded when a workbook is opened.
For most OLE object types, this property should not be set to true. By default, the property is set to false for new OLE objects; this saves time and memory when Microsoft Office Excel is loading workbooks. The benefit of automatically loading OLE objects is that, for objects that represent volatile data, links to source data can be reestablished immediately and the objects can be rendered again if necessary.
- 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.