Udostępnij za pośrednictwem


EdmToClrConverter.AsClrValue Method (IEdmValue, Type)

Converts edmValue to a CLR value of the specified type.

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

Syntax

'Declaration
Public Function AsClrValue ( _
    edmValue As IEdmValue, _
    clrType As Type _
) As Object
'Usage
Dim instance As EdmToClrConverter 
Dim edmValue As IEdmValue 
Dim clrType As Type 
Dim returnValue As Object 

returnValue = instance.AsClrValue(edmValue, _
    clrType)
public Object AsClrValue(
    IEdmValue edmValue,
    Type clrType
)
public:
Object^ AsClrValue(
    IEdmValue^ edmValue, 
    Type^ clrType
)
member AsClrValue : 
        edmValue:IEdmValue * 
        clrType:Type -> Object
public function AsClrValue(
    edmValue : IEdmValue, 
    clrType : Type
) : Object

Parameters

Return Value

Type: System.Object
A CLR value converted from edmValue.

Remarks

Supported values for T are:

This method performs boxing and unboxing for value types. Use value-type specific methods such as AsClrString(IEdmValue) to avoid boxing and unboxing.

See Also

Reference

EdmToClrConverter Class

AsClrValue Overload

Microsoft.Data.Edm.EdmToClrConversion Namespace