다음을 통해 공유


'System.ObsoleteAttribute'는 'AddHandler', 'RemoveHandler' 또는 'RaiseEvent' 정의에 적용할 수 없습니다.

업데이트: 2007년 11월

오류 메시지

'System.ObsoleteAttribute'는 'AddHandler', 'RemoveHandler' 또는 'RaiseEvent' 정의에 적용할 수 없습니다. 필요한 경우 이벤트에 속성을 직접 적용합니다.
'System.ObsoleteAttribute' cannot be applied to the 'AddHandler', 'RemoveHandler', or 'RaiseEvent' definitions. If required, apply the attribute directly to the event.

사용자 지정 이벤트를 ObsoleteAttribute 해당 AddHandler, RemoveHandler 또는 RaiseEvent 프로시저에 적용합니다.

ObsoleteAttribute는 더 이상 사용되지 않는 프로그래밍 요소를 표시하고 제품의 후속 버전에서 제거될 요소를 사용자에게 알립니다.

사용자 지정 이벤트의 특정 부분은 아직도 사용되고 있는 반면 다른 부분은 더 이상 사용되지 않는 경우에는 의미가 없습니다.

오류 ID: BC31142

이 오류를 해결하려면

  • 개별 프로시저 선언에서 ObsoleteAttribute를 제거하고 이를 전체적인 이벤트 선언에 적용합니다.

참고 항목

참조

ObsoleteAttribute

Event 문

AddHandler 문

RemoveHandler 문

RaiseEvent 문