PrimaryInteropAssemblyAttribute(Int32, Int32) 建構函式

定義

初始化該類別的新實例 PrimaryInteropAssemblyAttribute ,使用該組合語言作為主要互操作組件的類型庫的主版本號與次要版本號。

public:
 PrimaryInteropAssemblyAttribute(int major, int minor);
public PrimaryInteropAssemblyAttribute(int major, int minor);
new System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute : int * int -> System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute
Public Sub New (major As Integer, minor As Integer)

參數

major
Int32

此為該組建為主要互操作組的型別庫主要版本。

minor
Int32

此為該組建的類型庫的次要版本,該組譯本為主要互操作組。

備註

如果該組合是同一類型庫多個版本的主要互操作組件,則 PrimaryInteropAssemblyAttribute 可以多次出現。

適用於