Object.SizeOf (gb)
Static Function SizeOf ( Object As Object ) As Integer
返回现有对象使用了多少内存(以字节为单位)。
Example
Public Struct EmployeeStruct
Name As String
Age As Integer
End Struct
Dim hEmp As New EmployeeStruct
hEmp.Name = "Benoît Minisini"
hEmp.Age = 42
Print Object.SizeOf(hEmp)