Specifies the type of an interface for COM interoperability: dispinterface, dual, or derived from IUnknown.
[interfacetype(val)]
Interface declarations.
interfacetype is a single-use attribute. interfacetype is an alias for System.InterOp.InterfaceTypeAttribute.
An interface with the interfacetype attribute must also have a guid specified.
[ comimport, guid("56A868B1-0AD4-11CE-B03A-0020AF0BA770"), interfacetype(ComInterfaceType.Dual) ] interface IMediaControl // can not list any base interfaces here { [returnshresult(true)] void Run(); [returnshresult(true)] void Pause(); [returnshresult(true)] void Stop(); ...