Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'type':
const/volatilequalifiers on this type are not supported
Remarks
The const and volatile qualifiers don't work with common language runtime typed variables.
Example
The following example generates C4400.
// C4400.cpp
// compile with: /clr /W4
// C4401 expected
using namespace System;
#pragma warning (disable : 4101)
int main() {
const String^ str; // C4400
volatile String^ str2; // C4400
}