Share via


EdmTypeSemantics.AsSpatial(IEdmTypeReference) Method

Definition

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

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

Parameters

type
IEdmTypeReference

Reference to the calling object.

Returns

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

Applies to