Share via


DbConnectionInterceptionContext<TResult>.Clone Method

Definition

Call this method when creating a copy of an interception context in order to add new state to it. Using this method instead of calling the constructor directly ensures virtual dispatch so that the new type will have the same type (and any specialized state) as the context that is being cloned.

protected override System.Data.Entity.Infrastructure.Interception.DbInterceptionContext Clone ();
override this.Clone : unit -> System.Data.Entity.Infrastructure.Interception.DbInterceptionContext
Protected Overrides Function Clone () As DbInterceptionContext

Returns

A new context with all state copied.

Applies to