Impossibile applicare "System.Runtime.InteropServices.DllImportAttribute" a Sub, Function o Operator con un corpo non vuoto

Aggiornamento: novembre 2007

'System.Runtime.InteropServices.DllImportAttribute' cannot be applied to a Sub, Function, or Operator with a non-empty body

L'attributo DllImportAttribute è stato applicato a Sub, Function o Operator con un corpo non vuoto.

ID errore: BC31522

Per correggere l'errore

  • Rimuovere l'intero codice da Sub, Function o Operator per utilizzare questo attributo.

Vedere anche

Riferimenti

DllImportAttribute

Istruzione Declare