NoIDispatch
attributeThe presence of the NoIDispatch
attribute indicates that the class or interface should derive from IUnknown
rather than IDispatch
when exported to COM.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public class NoIDispatchAttribute: System.Attribute { public NoIDispatchAttribute() {…} }