你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TypeConversionSettings interface

类型转换设置

属性

allowDataTruncation

是否允许在转换数据时截断数据。 类型:布尔值(或带有 resultType 布尔值的表达式)。

culture

用于将数据从/转换为字符串的区域性。 类型:字符串(或带有 resultType 字符串的表达式)。

dateFormat

Date 值的格式。 类型:字符串(或带有 resultType 字符串的表达式)。

dateTimeFormat

DateTime 值的格式。 类型:字符串(或带有 resultType 字符串的表达式)。

dateTimeOffsetFormat

DateTimeOffset 值的格式。 类型:字符串(或带有 resultType 字符串的表达式)。

timeFormat

Time 值的格式。 类型:字符串(或带有 resultType 字符串的表达式)。

timeSpanFormat

TimeSpan 值的格式。 类型:字符串(或带有 resultType 字符串的表达式)。

treatBooleanAsNumber

是否将布尔值视为数字。 类型:布尔值(或带有 resultType 布尔值的表达式)。

属性详细信息

allowDataTruncation

是否允许在转换数据时截断数据。 类型:布尔值(或带有 resultType 布尔值的表达式)。

allowDataTruncation?: any

属性值

any

culture

用于将数据从/转换为字符串的区域性。 类型:字符串(或带有 resultType 字符串的表达式)。

culture?: any

属性值

any

dateFormat

Date 值的格式。 类型:字符串(或带有 resultType 字符串的表达式)。

dateFormat?: any

属性值

any

dateTimeFormat

DateTime 值的格式。 类型:字符串(或带有 resultType 字符串的表达式)。

dateTimeFormat?: any

属性值

any

dateTimeOffsetFormat

DateTimeOffset 值的格式。 类型:字符串(或带有 resultType 字符串的表达式)。

dateTimeOffsetFormat?: any

属性值

any

timeFormat

Time 值的格式。 类型:字符串(或带有 resultType 字符串的表达式)。

timeFormat?: any

属性值

any

timeSpanFormat

TimeSpan 值的格式。 类型:字符串(或带有 resultType 字符串的表达式)。

timeSpanFormat?: any

属性值

any

treatBooleanAsNumber

是否将布尔值视为数字。 类型:布尔值(或带有 resultType 布尔值的表达式)。

treatBooleanAsNumber?: any

属性值

any