Bagikan melalui


ExtensionMethods.PrimitiveKind Method

Gets the primitive kind of the specified type.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function PrimitiveKind ( _
    type As IEdmPrimitiveTypeReference _
) As EdmPrimitiveTypeKind
'Usage
Dim type As IEdmPrimitiveTypeReference 
Dim returnValue As EdmPrimitiveTypeKind 

returnValue = type.PrimitiveKind()
public static EdmPrimitiveTypeKind PrimitiveKind(
    this IEdmPrimitiveTypeReference type
)
[ExtensionAttribute]
public:
static EdmPrimitiveTypeKind PrimitiveKind(
    IEdmPrimitiveTypeReference^ type
)
static member PrimitiveKind : 
        type:IEdmPrimitiveTypeReference -> EdmPrimitiveTypeKind
public static function PrimitiveKind(
    type : IEdmPrimitiveTypeReference
) : EdmPrimitiveTypeKind

Parameters

Return Value

Type: Microsoft.Data.Edm.EdmPrimitiveTypeKind
The kind of the primitive.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmPrimitiveTypeReference. 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

ExtensionMethods Class

Microsoft.Data.Edm Namespace