הערה
גישה לעמוד זה דורשת אישור. אתה יכול לנסות להיכנס או לשנות תיקיות.
גישה לעמוד זה דורשת אישור. אתה יכול לנסות לשנות מדריכים.
'function': 'const' and 'volatile' qualifiers on member functions of WinRT or managed types are not supported
Remarks
const and volatile are not supported on member functions of Windows Runtime or managed types.
Example
The following example generates C3842:
// C3842a.cpp
// compile with: /clr /c
public ref struct A {
void f() const {} // C3842
void f() volatile {} // C3842
void f() {}
};