私はこのインターフェースを持っています:
Public Interface IDocumentSavingEventArgs
Inherits IDocumentCancelEventArgs
Property SuggestedDocName As String
Property SuppressSaveDialog As Boolean
End Interface
これは、示されているように、より一般的なインターフェースから継承していますIDocumentCancelEventArgs。
それから私はこのインターフェースを持っています:
Public Interface IDocumentSavingHandlerProvider
Inherits IProvider
Sub DocumentSavingHandler(sender As Object, e As IDocumentSavingEventArgs)
End Interface
古い pulgins との互換性のために、後者のインターフェースもeof タイプを使用して実装する必要がありIDocumentCancelEventArgsます。
Public Sub MySavingHandler(sender As Object, e As IDocumentCancelEventArgs)
Implements IDocumentSavingHandlerProvider.DocumentSavingHandler
DocumentSavingHandlerコンパイラは、そのシグネチャを持つメソッドがないと警告するため、これは不可能のようです。私の意見では、これはtypeof でMySavingHandlerあるため、実行時に問題になることはありません。IDocumentSavingEventArgsIDocumentCancelEventArgs
これを達成する方法はありますか?