'type': 사용자 지정 특성의 형식이 잘못되었습니다.
사용자 지정 특성에 대한 명명된 인수는 컴파일 시간 상수로 제한됩니다. 예를 들어 정수 계열 형식(int, char 등), System::Type^, System::Object^입니다.
예시
다음 샘플에서는 C2364를 생성합니다.
// c2364.cpp
// compile with: /clr /c
using namespace System;
[attribute(AttributeTargets::All)]
public ref struct ABC {
public:
// Delete the following line to resolve.
ABC( Enum^ ) {} // C2364
ABC( int ) {} // OK
};