Skip to main content

DBColumn.GetColumnType(Type, Boolean) Method

Gets the column type of the specified runtime type.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


public static DBColumnType GetColumnType(
    Type type,
    bool suppressExceptionOnUnknown


Name Type Description
type Type

A Type object that represents the exact runtime type.

suppressExceptionOnUnknown Boolean

true to return the DBColumnType.Unknown value if the specified type cannot be identified; false to raise the PropertyTypeMappingMissingException exception.


Type Description

A DevExpress.Xpo.DB.DBColumnType enumeration value that corresponds to the specified runtime type.

See Also