System.Runtime.InteropServices.DllImportAttribute' 無法套用至非空白主體的 Sub、Function 或 Operator

更新:2007 年 11 月

DllImportAttribute 屬性 (Attribute) 會套用至非空白的 Sub、Function 或 Operator。

錯誤 ID:BC31522

若要更正這個錯誤

  • 請移除 Sub、Function 或 Operator 中所有的程式碼,才能使用此屬性。

請參閱

參考

DllImportAttribute

Declare 陳述式