ITypeReflector.Get Method (ITypeDescriptor, ITypeDescriptor, Object)
Gets a value from the specified parent object.
Namespace: Microsoft.BusinessData.Infrastructure
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function Get ( _
typeDescriptor As ITypeDescriptor, _
instanceRootTypeDescriptor As ITypeDescriptor, _
instance As Object _
) As Object
'Usage
Dim instance As ITypeReflector
Dim typeDescriptor As ITypeDescriptor
Dim instanceRootTypeDescriptor As ITypeDescriptor
Dim instance As Object
Dim returnValue As Object
returnValue = instance.Get(typeDescriptor, _
instanceRootTypeDescriptor, instance)
Object Get(
ITypeDescriptor typeDescriptor,
ITypeDescriptor instanceRootTypeDescriptor,
Object instance
)
Parameters
typeDescriptor
Type: Microsoft.BusinessData.MetadataModel.ITypeDescriptorThe TypeDescriptor that corresponds to the value to get from the parent object.
instanceRootTypeDescriptor
Type: Microsoft.BusinessData.MetadataModel.ITypeDescriptorThe TypeDescriptor that corresponds to the parent object.
instance
Type: System.ObjectiThe parent object.
Return Value
Type: System.Object
The value.
Remarks
The returned value can be of a primitive type, value type, or a reference type. The TypeDescriptor that represents the parent object must not have the IsCollection flag set.
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.