Share via


ITypeReflector.GetDotNetType Method

Gets the .NET Framework type that corresponds to the specified TypeDescriptor.

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

Syntax

'Declaration
Function GetDotNetType ( _
    typeDescriptor As ITypeDescriptor _
) As Type
'Usage
Dim instance As ITypeReflector
Dim typeDescriptor As ITypeDescriptor
Dim returnValue As Type

returnValue = instance.GetDotNetType(typeDescriptor)
Type GetDotNetType(
    ITypeDescriptor typeDescriptor
)

Parameters

Return Value

Type: System.Type
The corresponding .NET Framework type.

Remarks

The TypeDescriptor describes an abstract data type in a type system. At some point, the abstract type in that type system must resolve to a real .NET Framework type. For example, to create an ADO.NET data table, you need .NET Framework types for the columns. All TypeReflector objects must be able to extract a .NET Framework type from a TypeDescriptor, and this API provides that ability.

Note

The TypeName attribute of a TypeDesriptor is a string that is understood by the TypeReflector. Although it may seem to be the name of a .NET Framework Type in certain cases, the value of the attribute should not be used outside of the corresponding TypeReflector.

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

Microsoft.BusinessData.Infrastructure Namespace