Share via


RequiredAttributeAttribute(Type) 建構函式

定義

初始化 RequiredAttributeAttribute 類別的新執行個體。

public:
 RequiredAttributeAttribute(Type ^ requiredContract);
public RequiredAttributeAttribute (Type requiredContract);
new System.Runtime.CompilerServices.RequiredAttributeAttribute : Type -> System.Runtime.CompilerServices.RequiredAttributeAttribute
Public Sub New (requiredContract As Type)

參數

requiredContract
Type

進行匯入的編譯器 (Compiler) 必須完全了解的型別。

.NET Framework 2.0 版 (含) 以後版本不支援這個參數。

適用於