Jaa


EdmTypeSemantics.AsPrimitive(IEdmTypeReference) Method

Definition

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

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

Parameters

type
IEdmTypeReference

Reference to the calling object.

Returns

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

Applies to