EdmToClrConverter.RegisterConvertedObject Method

Registers the clrObject corresponding to the edmValue. All subsequent conversions from this edmValue performed by this instance of EdmToClrConverter will return the specified clrObject. Registration is required to support graph consistency and loops during conversion process. This method should be called inside the TryCreateObjectInstance delegate if the delegate is calling back into EdmToClrConverter in order to populate properties of the clrObject.

Namespace:  Microsoft.Data.Edm.EdmToClrConversion
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
Public Sub RegisterConvertedObject ( _
    edmValue As IEdmStructuredValue, _
    clrObject As Object _
)
'Usage
Dim instance As EdmToClrConverter 
Dim edmValue As IEdmStructuredValue 
Dim clrObject As Object

instance.RegisterConvertedObject(edmValue, _
    clrObject)
public void RegisterConvertedObject(
    IEdmStructuredValue edmValue,
    Object clrObject
)
public:
void RegisterConvertedObject(
    IEdmStructuredValue^ edmValue, 
    Object^ clrObject
)
member RegisterConvertedObject : 
        edmValue:IEdmStructuredValue * 
        clrObject:Object -> unit
public function RegisterConvertedObject(
    edmValue : IEdmStructuredValue, 
    clrObject : Object
)

Parameters

See Also

Reference

EdmToClrConverter Class

Microsoft.Data.Edm.EdmToClrConversion Namespace