Chili.Opf3 Send comments on this topic.
RegisterPersistentInterface(Type,Type) Method
See Also 
Chili.Opf3.Mapping Namespace > TypeMapping Class > RegisterPersistentInterface Method : RegisterPersistentInterface(Type,Type) Method




interfaceType
The type of the interface registered with the persistent type.
persistentType
The type of the persistent registered with the interface type.
Registers the given interface type with the persistent object type. This is required if an interface is registered with a persistent type and the interface is used instead of the persistent type. The framework looks up the registered interfaces to get the persistent object when loading objects from the storage.

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Function RegisterPersistentInterface( _
   ByVal interfaceType As Type, _
   ByVal persistentType As Type _
) As Boolean
Visual Basic (Usage)Copy Code
Dim interfaceType As Type
Dim persistentType As Type
Dim value As Boolean
 
value = TypeMapping.RegisterPersistentInterface(interfaceType, persistentType)
C# 
public static bool RegisterPersistentInterface( 
   Type interfaceType,
   Type persistentType
)
Managed Extensions for C++ 
public: static bool RegisterPersistentInterface( 
   Type* interfaceType,
   Type* persistentType
) 
C++/CLI 
public:
static bool RegisterPersistentInterface( 
   Type^ interfaceType,
   Type^ persistentType
) 

Parameters

interfaceType
The type of the interface registered with the persistent type.
persistentType
The type of the persistent registered with the interface type.

Return Value

True if the interface wasn't already registered.

Requirements

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

See Also