[]
Gets the name of the source field that the slicer cache is connected to.
This value identifies the field in the underlying table or PivotTable data source that the slicer cache uses for filtering.
string SourceName { get; }
ReadOnly Property SourceName As String
object[,] sourceData = {{"Category"}, {"Fruit"}, {"Vegetables"}};
worksheet.Range["A1:A3"].Value = sourceData;
ITable table = worksheet.Tables.Add(worksheet.Range["A1:A3"], true);
ISlicerCache slicerCache = workbook.SlicerCaches.Add(table, "Category", "categoryCache");
string sourceName = slicerCache.SourceName;