PrimaryInteropAssemblyAttribute(Int32, Int32) 建構函式

定義

使用組件為主要 Interop 組件的型別程式庫主要和次要版本號碼,初始化 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

型別程式庫的主要版本,其中的組件為主要 Interop 組件。

minor
Int32

型別程式庫的次要版本,其中的組件為主要 Interop 組件。

備註

PrimaryInteropAssemblyAttribute如果元件是相同類型連結庫之多個版本的主要 Interop 元件,就會出現多次。

適用於