Share via


EdmTypeSemantics.AsSpatial Method

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

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function AsSpatial ( _
    type As IEdmTypeReference _
) As IEdmSpatialTypeReference
'Usage
Dim type As IEdmTypeReference 
Dim returnValue As IEdmSpatialTypeReference 

returnValue = type.AsSpatial()
public static IEdmSpatialTypeReference AsSpatial(
    this IEdmTypeReference type
)
[ExtensionAttribute]
public:
static IEdmSpatialTypeReference^ AsSpatial(
    IEdmTypeReference^ type
)
static member AsSpatial : 
        type:IEdmTypeReference -> IEdmSpatialTypeReference
public static function AsSpatial(
    type : IEdmTypeReference
) : IEdmSpatialTypeReference

Parameters

Return Value

Type: Microsoft.Data.Edm.IEdmSpatialTypeReference
A valid spatial type reference if the definition of the reference is of a spatial type. Otherwise a bad spatial 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

Reference

EdmTypeSemantics Class

Microsoft.Data.Edm Namespace