AssemblyBuilder.GetType(String, Boolean, Boolean) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
to throw an exception if the type is not found; otherwise, false
.
- ignoreCase
- Boolean
true
to ignore the case of the type name when searching; otherwise, false
.
The specified type, or null
if the type is not found or has not been created yet.
A type cannot be found until it has been created by calling the CreateType method.
Продукт | Версии |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: