Workbook.ServerViewableItems Property
Gets an object that you can use to interact with the list of published objects in the workbook that are shown on a Microsoft Office SharePoint Server server.
Namespace: Microsoft.Office.Tools.Excel
Assemblies: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
Syntax
'Declaration
ReadOnly Property ServerViewableItems As ServerViewableItems
ServerViewableItems ServerViewableItems { get; }
Property Value
Type: ServerViewableItems
A Microsoft.Office.Interop.Excel.ServerViewableItems object that you can use to interact with the list of published objects in the workbook that are shown on the server.
Remarks
This property returns a collection of the items in the workbook that you can publish to Excel Services. Only objects in this collection will be shown on the server. By default, the entire workbook (including all worksheets) is shown.
Only one ServerViewableItems object can exist per workbook. This collection cannot be indexed by name, because there is no guarantee that the names of objects that are marked as viewable on the server are unique.
In the Excel user interface, you can view the collection of objects that are marked as viewable on the server in the Excel Services Options dialog box.
.NET Framework Security
- 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.