TypeKind Enum

Definition

Provides basic guidance about the origin of a type. Used as a value by TypeName.

public enum class TypeKind
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class TypeKind
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum TypeKind
Public Enum TypeKind
Inheritance
TypeKind
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Primitive 0

The type is a language-level primitive.

Metadata 1

The type is declared through WinMD (Windows Runtime metadata).

Custom 2

The type is a custom type declared by means other than WinMD.

Remarks

This enumeration is not relevant to type system information as reported to .NET code. Any value that reports type information from a Windows Runtime API being called by C# or Microsoft Visual Basic code is projected to System.Type.

Applies to

See also