【发布时间】:2012-01-23 15:33:27
【问题描述】:
谁能解释以下即时窗口行为:
Debug.Print mDb.DatabaseOptions
Method arguments must be enclosed in parentheses.
Debug.Print(mDb.DatabaseOptions)
Value of type 'DatabaseOptions' cannot be converted to 'String'.
? mDb.DatabaseOptions
{Microsoft.SqlServer.Management.Smo.DatabaseOptions}
AnsiNullDefault: False
...
UserData: Nothing
问号 (?) 是
Debug.Print的别名
这显然不是 100% 正确的,因为这两个语句在上面的示例中表现出不同的行为。如果有什么不同,我使用的是 VB 2008 的 Express Edition。
【问题讨论】: