컴파일러 오류 CS0619
업데이트: 2007년 11월
오류 메시지
'member'은(는) 사용되지 않습니다. 'text'
'member' is obsolete: 'text'
클래스 멤버가 Obsolete 특성으로 표시되어 있으므로 클래스 멤버를 참조할 때 오류가 발생합니다.
다음 샘플에서는 CS0619 오류가 발생하는 경우를 보여 줍니다.
// CS0619.cs
using System;
public class C
{
[Obsolete("Use newMethod instead", true)] // generates an error on use
public static void m()
{
}
// this is the method you should be using
public static void newMethod()
{
}
}
class MyClass
{
public static void Main()
{
C.m(); // CS0619
}
}