Creates an instance of a persistent object type. If the factory does not support
creation of the given type, it should return null.
Syntax
| Visual Basic (Declaration) | |
|---|
Overridable Function CreateInstance( _
ByVal type As Type, _
ByVal parameters() As Object _
) As Object |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As IPersistentFactory
Dim type As Type
Dim parameters() As Object
Dim value As Object
value = instance.CreateInstance(type, parameters)
|
| Managed Extensions for C++ | |
|---|
virtual Object* CreateInstance(
Type* type,
Object*[]* parameters
) |
| C++/CLI | |
|---|
virtual Object^ CreateInstance(
Type^ type,
array<Object^>^ parameters
) |
Parameters
- type
- The type of the persistent to create an instance for.
- parameters
- The constructor parameters for the persistent object instance.
Return Value
An instance if the factory can create one. Null if the factory can't create an instance for the given type.
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also