다음을 통해 공유


'<typename>'은(는) 'System.Attribute'에서 상속하지 않으므로 특성으로 사용할 수 없습니다.

업데이트: 2007년 11월

'<typename>' cannot be used as an attribute because it does not inherit from 'System.Attribute'

System.Attribute에서 파생되지 않은 클래스를 사용하려고 했습니다.

오류 ID: BC31504

이 오류를 해결하려면

  • Imports 문을 클래스의 첫 번째 코드 줄에 추가하여 사용자 지정 특성을 System.Attribute에서 파생된 클래스로 정의합니다.

참고 항목

참조

AttributeUsageAttribute

기타 리소스

Visual Basic의 사용자 지정 특성