# ExcelSlicerCacheOptionsFluent

The fluent methods of ExcelSlicerCacheOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelSlicerCacheOptions](/api/excel/officeimo-excel-excelslicercacheoptions/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- ExcelSlicerCacheOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelSlicerCacheOptions Name(ExcelSlicerCacheOptions excelSlicerCacheOptions, string value)` [#](#method-name-officeimo-excel-excelslicercacheoptions-string)

Sets [ExcelSlicerCacheOptions.Name](/api/excel/officeimo-excel-excelslicercacheoptions/): Slicer cache name.

Parameters

**excelSlicerCacheOptions OfficeIMO.Excel.ExcelSlicerCacheOptions required**

The instance.

**value string required**

The value.

Returns

`ExcelSlicerCacheOptions` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Excel.ExcelSlicerCacheOptions { Name = value };    excelSlicerCacheOptions.Name(value);
```

`public static ExcelSlicerCacheOptions PivotTableName(ExcelSlicerCacheOptions excelSlicerCacheOptions, string? value)` [#](#method-pivottablename-officeimo-excel-excelslicercacheoptions-string)

Sets [ExcelSlicerCacheOptions.PivotTableName](/api/excel/officeimo-excel-excelslicercacheoptions/): Optional pivot table name the slicer is intended to filter.

Parameters

**excelSlicerCacheOptions OfficeIMO.Excel.ExcelSlicerCacheOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelSlicerCacheOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Excel.ExcelSlicerCacheOptions { PivotTableName = value };    excelSlicerCacheOptions.PivotTableName(value);
```

`public static ExcelSlicerCacheOptions SourceName(ExcelSlicerCacheOptions excelSlicerCacheOptions, string? value)` [#](#method-sourcename-officeimo-excel-excelslicercacheoptions-string)

Sets [ExcelSlicerCacheOptions.SourceName](/api/excel/officeimo-excel-excelslicercacheoptions/): Source field, table column, or pivot field name.

Parameters

**excelSlicerCacheOptions OfficeIMO.Excel.ExcelSlicerCacheOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelSlicerCacheOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Excel.ExcelSlicerCacheOptions { SourceName = value };    excelSlicerCacheOptions.SourceName(value);
```

`public static ExcelSlicerCacheOptions Xml(ExcelSlicerCacheOptions excelSlicerCacheOptions, string? value)` [#](#method-xml-officeimo-excel-excelslicercacheoptions-string)

Sets [ExcelSlicerCacheOptions.Xml](/api/excel/officeimo-excel-excelslicercacheoptions/): Optional caller-supplied XML preserved as a subtree in the OfficeIMO pivot-interaction metadata envelope.

Parameters

**excelSlicerCacheOptions OfficeIMO.Excel.ExcelSlicerCacheOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelSlicerCacheOptions` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Excel.ExcelSlicerCacheOptions { Xml = value };    excelSlicerCacheOptions.Xml(value);
```

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:B3D2D53FB2C98B4AF6051224C376AD0B06932A5642EA6A614BD30D617DEE3E57 -->
