System.Runtime.InteropServices.ComImportAttribute
, this class does not import anything, rather, it marks a class as a COM (i.e. an unmanaged) type in a previously published type library. ComImportAttribute
can be used is Using the IShellDispatch
interface in PowerShell.