Metalama / / API Documentation / Aspect API / Metalama.​Framework.​Code.​Invokers / IIndexer­Invoker / With

Method With

With(InvokerOptions)

Gets an IIndexerInvoker for the same index and target but with different options.

Declaration
IIndexerInvoker With(InvokerOptions options)
Parameters
Type Name Description
InvokerOptions options
Returns
Type Description
IIndexerInvoker

With(Object, InvokerOptions)

Gets an IIndexerInvoker for the same indexer but with a different field or property and with different options.

Declaration
IIndexerInvoker With(dynamic target, InvokerOptions options)
Parameters
Type Name Description
Object target
InvokerOptions options
Returns
Type Description
IIndexerInvoker