从MSDN中得不到以下内容:
ClassInterfaceType.None 表示没有为类生成类接口.如果没有显式实现接口,则该类只能通过IDispatch 接口提供后期绑定访问.这是推荐的设置ClassInterfaceAttribute.使用ClassInterfaceType.None是通过类显式实现的接口公开功能的唯一方法.
ClassInterfaceType.None
表示没有为类生成类接口.如果没有显式实现接口,则该类只能通过IDispatch 接口提供后期绑定访问.这是推荐的设置ClassInterfaceAttribute.使用ClassInterfaceType.None是通过类显式实现的接口公开功能的唯一方法.
IDispatch
ClassInterfaceAttribute
[ComVisible(true)]COM可见性是必须的吗?
[ComVisible(true)]
.net c# com interop com-interop
.net ×1
c# ×1
com ×1
com-interop ×1
interop ×1