Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 644 Bytes

compiler-error-c2506.md

File metadata and controls

28 lines (22 loc) · 644 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2506
Compiler Error C2506
11/04/2016
C2506
C2506
cfed21cd-2404-46f2-985e-d0c2c3820830

Compiler Error C2506

'member' : '__declspec(modifier)' cannot be applied to this symbol

You cannot declare per-process or per-appdomain for static members of a managed class.

See appdomain for more information.

Example

The following sample generates C2506.

// C2506.cpp// compile with: /clr /c ref structR { __declspec(process) staticint n; // C2506int o; // OK };
close