EdmTypeSemantics.AsTemporal Method

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

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

Syntax

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

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

Parameters

Return Value

Type: Microsoft.Data.Edm.IEdmTemporalTypeReference
A valid temporal type reference if the definition of the reference is of a temporal type. Otherwise a bad temporal 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.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

EdmTypeSemantics Class

Microsoft.Data.Edm Namespace