AssemblyBuilder.GetType(String, Boolean, Boolean) 方法

定義

由在目前 AssemblyBuilder 中定義和建立的類型取得指定的類型。

public:
 override Type ^ GetType(System::String ^ name, bool throwOnError, bool ignoreCase);
public override Type? GetType (string name, bool throwOnError, bool ignoreCase);
public override Type GetType (string name, bool throwOnError, bool ignoreCase);
override this.GetType : string * bool * bool -> Type
Public Overrides Function GetType (name As String, throwOnError As Boolean, ignoreCase As Boolean) As Type

參數

name
String

要搜尋的類型名稱。

throwOnError
Boolean

true 表示找不到該類型時擲回例外狀況,否則為 false

ignoreCase
Boolean

若要在搜尋時忽略類型名稱的大小寫,則為 true,否則為 false

傳回

如果此類型找不到或尚未建立,則為指定的類型或 null

備註

在呼叫 CreateType 方法建立類型之前,找不到類型。

適用於