About the ComImport attribute

Jan 7, 2011 at 5:31 AM

I find that I can't add this attribute on the interface using the following code:

<Rule Name="Rule #1" Category="Type">    <Condition>      <And>        <NativeName Operator="Equal" Value="IEditingEngine" />      </And>    </Condition>    <Action Name="AddAttribute">      <Parameter Key="AssemblyName" Value="mscorlib" />      <Parameter Key="TypeName" Value="System.Runtime.InteropServices.ComImportAttribute" />      <Parameter Key="Constructor" Value="Void .ctor()" />      <Parameter Key="Data" Value="01 00 00 00" />    </Action>  </Rule>

Is it right?