Share via


EdmTypeSemantics.AsDecimal(IEdmTypeReference) Method

Definition

If this reference is of a decimal type, this will return a valid decimal type reference to the type definition. Otherwise, it will return a bad decimal type reference.

public static Microsoft.OData.Edm.IEdmDecimalTypeReference AsDecimal (this Microsoft.OData.Edm.IEdmTypeReference type);
static member AsDecimal : Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.Edm.IEdmDecimalTypeReference
<Extension()>
Public Function AsDecimal (type As IEdmTypeReference) As IEdmDecimalTypeReference

Parameters

type
IEdmTypeReference

Reference to the calling object.

Returns

A valid decimal type reference if the definition of the reference is of a decimal type. Otherwise a bad decimal type reference.

Applies to