Share via


컴파일러 오류 CS0061

업데이트: 2007년 11월

오류 메시지

일관성 없는 액세스 가능성: 'interface 1' 기본 인터페이스가 'interface 2' 인터페이스보다 액세스하기 어렵습니다.
Inconsistent accessibility: base interface 'interface 1' is less accessible than interface 'interface 2'

public 구문에서는 공용으로 액세스할 수 있는 개체를 반환해야 합니다.

인터페이스 액세스 가능성은 파생 인터페이스에서 축소될 수 없습니다. 자세한 내용은 인터페이스(C# 프로그래밍 가이드)액세스 한정자(C# 프로그래밍 가이드)를 참조하십시오.

다음 샘플에서는 CS0061 오류가 발생하는 경우를 보여 줍니다.

// CS0061.cs
// compile with: /target:library
internal interface A {}
public interface AA : A {}  // CS0061

// OK
public interface B {}
internal interface BB : B {}

internal interface C {}
internal interface CC : C {}