Share via


ITypeReflector.Instantiate Method (ITypeDescriptor)

Instantiates an object that corresponds to the specifiedTypeDescriptor, without using defined default values.

Namespace:  Microsoft.BusinessData.Infrastructure
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Function Instantiate ( _
    typeDescriptor As ITypeDescriptor _
) As Object
'Usage
Dim instance As ITypeReflector
Dim typeDescriptor As ITypeDescriptor
Dim returnValue As Object

returnValue = instance.Instantiate(typeDescriptor)
Object Instantiate(
    ITypeDescriptor typeDescriptor
)

Parameters

Return Value

Type: System.Object
The instantiated object.

Remarks

Instances of objects in the Business Data Connectivity object model are tied to the Metadata Store they are obtained from. Using instances tied to one Metadata Store with the instances from another Metadata Store will cause data corruption and other unexpected behavior. For more information, see DatabaseBackedMetadataCatalog, FileBackedMetadataCatalog, and RemoteSharedFileBackedMetadataCatalog.

See Also

Reference

ITypeReflector Interface

ITypeReflector Members

Instantiate Overload

Microsoft.BusinessData.Infrastructure Namespace