BC30154: < type1 > " < typename > " 必须为接口 " <interfacename> " 实现 " <成员名称>"

" <typename> " 必须为接口 " <interfacename> " 实现 " <成员名称> "。 实现属性必须具有匹配的 "ReadOnly"/"WriteOnly" 说明符。

类或结构声明实现接口,但不实现由接口定义的过程、属性或事件。 必须实现接口的每个成员。

错误 ID: BC30154

更正此错误

  1. 使用在接口中定义的相同名称和签名声明成员。 请确保至少包含 End FunctionEnd SubEnd Property 语句。

  2. Implements 子句添加到 FunctionSubPropertyEvent 语句的末尾。 例如:

    Public Event ItHappened() Implements IBaseInterface.ItHappened
    
  3. 实现某个属性时,请确保 ReadOnlyWriteOnly 的使用方式与接口定义中的相同。

  4. 在实现属性时,请根据需要声明 GetSet 过程。

请参阅