Partilhar via


ITypeReflector.Instantiate Method (ITypeDescriptor, IMethodInstance)

Instantiates an object that corresponds to the specified TypeDescriptor using default values defined for the specified MethodInstance.

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

Syntax

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

returnValue = instance.Instantiate(typeDescriptor, _
    methodInstance)
Object Instantiate(
    ITypeDescriptor typeDescriptor,
    IMethodInstance methodInstance
)

Parameters

Return Value

Type: System.Object
An 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