CS0069 Error Compiler
Mensagem de erro
An evento in an interface Cannot have adicionar or remover accessors
You Cannot Definir funções acessador 's an evento in an interface.Para obter mais informações, consulte Eventos (Guia de programação do C#) e Interfaces (guia de programação C#).
The seguinte exemplo generates CS0069:
// CS0069.cs
// compile with: /target:library
public delegate void EventHandler();
public interface a
{
event EventHandler Click { remove {} } // CS0069
event EventHandler Click2; // OK
}