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)
|
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