Share via


SqlTranslatingExpressionVisitor.VisitUnhandledItem<TItem,TResult> Method

Definition

Called when an unhandled item is visited. This method provides the item the visitor cannot handle (unhandledItem), the visitMethod that is not implemented in the visitor, and a delegate that can be used to invoke the baseBehavior of the Remotion.Linq.Parsing.RelinqExpressionVisitor class. The default behavior of this method is to call the Remotion.Linq.Parsing.ThrowingExpressionVisitor.CreateUnhandledItemException``1(``0,System.String) method, but it can be overridden to do something else.

protected override TResult VisitUnhandledItem<TItem,TResult> (TItem unhandledItem, string visitMethod, Func<TItem,TResult> baseBehavior) where TItem : TResult;
override this.VisitUnhandledItem : 'Item * string * Func<#'Result, 'Result> -> 'Result
Protected Overrides Function VisitUnhandledItem(Of TItem As TResult, TResult As TResult) (unhandledItem As TItem, visitMethod As String, baseBehavior As Func(Of TItem, TResult)) As TResult

Type Parameters

TItem

The type of the item that could not be handled. Either an Expression type, a MemberBinding type, or ElementInit.

TResult

The result type expected for the visited unhandledItem.

Parameters

unhandledItem
TItem

The unhandled item.

visitMethod
String

The visit method that is not implemented.

baseBehavior
Func<TItem,TResult>

The behavior exposed by Remotion.Linq.Parsing.RelinqExpressionVisitor for this item type.

Returns

TResult

An object to replace unhandledItem in the expression tree. Alternatively, the method can throw any exception.

Applies to