AssemblyBuilder.GetType(String, Boolean, Boolean) Метод
Определение
Возвращает указанный тип из типов, которые определены и созданы в текущем AssemblyBuilder.Gets the specified type from the types that have been defined and created in the current 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
Имя искомого типа.The name of the type to search for.
- throwOnError
- Boolean
Значение true
для вызова исключения, если тип не найден, в противном случае — значение false
.true
to throw an exception if the type is not found; otherwise, false
.
- ignoreCase
- Boolean
Значение true
, чтобы игнорировать регистр имени типа при поиске; в противном случае — значение false
.true
to ignore the case of the type name when searching; otherwise, false
.
Возвращаемое значение
Указанный тип или значение null
, если тип не найден или еще не создан.The specified type, or null
if the type is not found or has not been created yet.
Комментарии
Тип не может быть найден, пока он не будет создан путем вызова CreateType метода.A type cannot be found until it has been created by calling the CreateType method.