EdmTypeSemantics.AsDecimal Method

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

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


<ExtensionAttribute> _
Public Shared Function AsDecimal ( _
    type As IEdmTypeReference _
) As IEdmDecimalTypeReference
Dim type As IEdmTypeReference 
Dim returnValue As IEdmDecimalTypeReference 

returnValue = type.AsDecimal()
public static IEdmDecimalTypeReference AsDecimal(
    this IEdmTypeReference type
static IEdmDecimalTypeReference^ AsDecimal(
    IEdmTypeReference^ type
static member AsDecimal : 
        type:IEdmTypeReference -> IEdmDecimalTypeReference
public static function AsDecimal(
    type : IEdmTypeReference
) : IEdmDecimalTypeReference


Return Value

Type: Microsoft.Data.Edm.IEdmDecimalTypeReference
A valid decimal type reference if the definition of the reference is of a decimal type. Otherwise a bad decimal type reference.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmTypeReference. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).

See Also


EdmTypeSemantics Class

Microsoft.Data.Edm Namespace