Record.DataSize 属性

Record 对象的 DataSize 属性是一个只读属性,返回指定字段的数据大小。 如果数据是流,则返回流长度,以字节为单位。 如果数据是字符串,则返回不带 Null 的字符串长度。 如果数据是整数,则返回值 4(表示整数的大小)。 如果数据为 Null,则返回 0。

此属性为只读。

语法

propVal = Record.DataSize

属性值

记录中值的必填字段编号,从 1 开始。

要求

要求
版本
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003 或 Windows XP 上的 Windows Installer
DLL
Msi.dll
IID
IID_IRecord 定义为 000C1093-0000-0000-C000-000000000046