Skip to main content
A newer version of this page is available. .

DBColumn.GetColumnType(Type, Boolean) Method

Gets the column type of the specified runtime type.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v18.2.dll

Declaration

public static DBColumnType GetColumnType(
    Type type,
    bool suppressExceptionOnUnknown
)

Parameters

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.

Returns

Type Description
DBColumnType

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

See Also