'function' :此函式無法編譯為 Managed,請考慮使用非受控 #pragma
備註
某些指示會防止編譯程式產生封入函式的 MSIL。
範例
下列範例會產生 C2711:
// C2711.cpp
// compile with: /clr
// processor: x86
using namespace System;
value struct V {
static const t = 10;
};
void bar() {
V::t;
__asm int 3 // C2711 inline asm can't be compiled managed
}