Share via


DbInterceptionContext.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 virtual System.Data.Entity.Infrastructure.Interception.DbInterceptionContext Clone ();
abstract member Clone : unit -> System.Data.Entity.Infrastructure.Interception.DbInterceptionContext
override this.Clone : unit -> System.Data.Entity.Infrastructure.Interception.DbInterceptionContext
Protected Overridable Function Clone () As DbInterceptionContext

Returns

A new context with all state copied.

Applies to