委托类“<classname>”没有 Invoke 方法,所以此类型的表达式不能作为方法调用的目标Delegate class '<classname>' has no Invoke method, so an expression of this type cannot be the target of a method call

Invoke通过委托调用失败,因为 Invoke 未在委托类上实现。A call to Invoke through a delegate has failed because Invoke is not implemented on the delegate class.

错误 ID: BC30220Error ID: BC30220

更正此错误To correct this error

  1. 请确保已使用语句创建了委托类的实例 Dim ,并且已使用运算符将一个过程分配给了该委托实例 AddressOfEnsure that an instance of the delegate class has been created with a Dim statement and that a procedure has been assigned to the delegate instance with the AddressOf operator.

  2. 找到实现委托类的代码,并确保它实现 Invoke 过程。Locate the code that implements the delegate class and make sure it implements the Invoke procedure.

另请参阅See also