'<membername>' は、継承インターフェイス '<interfacename1>' および '<interfacename2>' 間ではあいまいです。

更新 : 2007 年 11 月

インターフェイスが、同じ名前の 2 つ以上のメンバを複数のインターフェイスから継承しています。

Error ID: BC30685

このエラーを解決するには

  • 使用する基本インターフェイスに値をキャストします。次に例を示します。

    Interface Left
        Sub MySub()
    End Interface
    
    Interface Right
        Sub MySub()
    End Interface
    
    Interface LeftRight
        Inherits Left, Right
    End Interface
    
    Module test
        Sub Main()
            Dim x As LeftRight
            ' x.MySub()  'x is ambiguous.
            CType(x, Left).MySub() ' Cast to base type.
            CType(x, Right).MySub() ' Call the other base type.
        End Sub
    End Module
    

参照

概念

インターフェイスの概要