IsSpatialType Method

Checks if the primitive type is a geography or geometry type.

Namespace:  Microsoft.Data.OData.Metadata
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function IsSpatialType ( _
    primitiveType As IEdmPrimitiveType _
) As Boolean
'Usage
Dim primitiveType As IEdmPrimitiveType
Dim returnValue As Boolean

returnValue = primitiveType.IsSpatialType()
public static bool IsSpatialType(
    this IEdmPrimitiveType primitiveType
)
[ExtensionAttribute]
public:
static bool IsSpatialType(
    IEdmPrimitiveType^ primitiveType
)
static member IsSpatialType : 
        primitiveType:IEdmPrimitiveType -> bool 
public static function IsSpatialType(
    primitiveType : IEdmPrimitiveType
) : boolean

Parameters

Return Value

Type: System..::..Boolean
True when the primitiveType is a geography or geometry type; otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmPrimitiveType. 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.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

EdmLibraryExtensions Class

Microsoft.Data.OData.Metadata Namespace