【发布时间】:2011-02-19 02:12:33
【问题描述】:
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing = true And components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
Error: Protected Overrides Sub Dispose(disposing As Boolean)' 有多个具有相同签名的定义。
我怎样才能在不引发错误的情况下调用它?
【问题讨论】:
-
您是否也在其他地方覆盖了该方法?这可能会导致这样的错误。您可能在代码的其他地方有相同的方法 Dispose(ByVal disposing As Boolean)。
标签: vb.net