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




interfaceType
The string representation of the interface type registered with the persistent type.
persistentType
The string representation of the persistent type 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 String, _
   ByVal persistentType As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim interfaceType As String
Dim persistentType As String
Dim value As Boolean
 
value = TypeMapping.RegisterPersistentInterface(interfaceType, persistentType)
C# 
public static bool RegisterPersistentInterface( 
   string interfaceType,
   string persistentType
)
Managed Extensions for C++ 
public: static bool RegisterPersistentInterface( 
   string* interfaceType,
   string* persistentType
) 
C++/CLI 
public:
static bool RegisterPersistentInterface( 
   String^ interfaceType,
   String^ persistentType
) 

Parameters

interfaceType
The string representation of the interface type registered with the persistent type.
persistentType
The string representation of the persistent type 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