此接口从多个接口继承具有相同名称的两个或更多个成员。
错误 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