“System.Runtime.InteropServices.DllImportAttribute”不能应用于“Declare”

更新:2007 年 11 月

DllImportAttribute 属性应用于 Declare 函数。此属性只能用于空的 Function 或 Sub。

**错误 ID:**BC31523

更正此错误

  • 从 Declare 语句中移除 DllImportAttribute 属性。

请参见

参考

DllImportAttribute

Declare 语句