InterceptionResult<TResult>.SuppressWithResult(TResult) Method

Definition

Creates a new InterceptionResult<TResult> instance indicating that execution should be suppressed and the given result should be used instead.

public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<TResult> SuppressWithResult (TResult result);
static member SuppressWithResult : 'Result -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<'Result>
Public Shared Function SuppressWithResult (result As TResult) As InterceptionResult(Of TResult)

Parameters

result
TResult

The result to use.

Returns

Applies to