Chili.Opf3 Send comments on this topic.
Persist Method
See Also 
Chili.Opf3 Namespace > ICustomPersister Interface : Persist Method




context
ObjectContext that called this routine.
persistDepth
Specifies the depth of the object graph that is persisted.
persistingTrace
Contains information about the recently persistet objects. The ICustomPersister should only add an object to this trace if not using the ObjectContext to save its persistent objects.

This routine is called by the ObjectContext during save operations on the storage.

Attention: The ICustomPersister should only add an object to the PersistingTrace (see the argument) if not using the ObjectContext to save its persistent objects.

Syntax

Visual Basic (Declaration) 
Overridable Sub Persist( _
   ByVal context As ObjectContext, _
   ByVal persistDepth As PersistDepths, _
   ByVal persistingTrace As PersistingTrace _
) 
Visual Basic (Usage)Copy Code
Dim instance As ICustomPersister
Dim context As ObjectContext
Dim persistDepth As PersistDepths
Dim persistingTrace As PersistingTrace
 
instance.Persist(context, persistDepth, persistingTrace)
C# 
virtual void Persist( 
   ObjectContext context,
   PersistDepths persistDepth,
   PersistingTrace persistingTrace
)
Managed Extensions for C++ 
virtual void Persist( 
   ObjectContext* context,
   PersistDepths persistDepth,
   PersistingTrace* persistingTrace
) 
C++/CLI 
virtual void Persist( 
   ObjectContext^ context,
   PersistDepths persistDepth,
   PersistingTrace^ persistingTrace
) 

Parameters

context
ObjectContext that called this routine.
persistDepth
Specifies the depth of the object graph that is persisted.
persistingTrace
Contains information about the recently persistet objects. The ICustomPersister should only add an object to this trace if not using the ObjectContext to save its persistent objects.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also