편집

다음을 통해 공유


SlicerCache.WorkbookConnection Property

Definition

Gets a WorkbookConnection object that represents the data connection used by the specified slicer.

public:
 property Microsoft::Office::Interop::Excel::WorkbookConnection ^ WorkbookConnection { Microsoft::Office::Interop::Excel::WorkbookConnection ^ get(); };
public Microsoft.Office.Interop.Excel.WorkbookConnection WorkbookConnection { get; }
Public ReadOnly Property WorkbookConnection As WorkbookConnection

Property Value

A WorkbookConnection object that represents the data connection used by the specified slicer.

Remarks

Read-only.

The WorkbookConnection property only applies to slicers that are based on external data sources (SlicerCache.SourceType = xlExternal). Attempting to access the WorkbookConnection property for slicers that are connected to PivotTables based on workbook ranges or lists (SlicerCache.SourceType = xlDatabase) generates a run-time error.

Applies to