Note
If tryLoadAssemblies is and allowPartialAssemblyMatch is , then
it can happen that the assembly of a different version will be loaded and the method returns .
[ObsoleteAttribute("This overload is obsolete. Use the overloads with ResolveTypeOptions instead.")]
public static Type? ResolveType(
string typeName,
bool tryLoadAssemblies,
bool allowPartialAssemblyMatch = true
)
<ObsoleteAttribute("This overload is obsolete. Use the overloads with ResolveTypeOptions instead.")>
Public Shared Function ResolveType (
typeName As String,
tryLoadAssemblies As Boolean,
Optional allowPartialAssemblyMatch As Boolean = true
) As Type
public:
[ObsoleteAttribute(L"This overload is obsolete. Use the overloads with ResolveTypeOptions instead.")]
static Type^ ResolveType(
String^ typeName,
bool tryLoadAssemblies,
bool allowPartialAssemblyMatch = true
)
[<ObsoleteAttribute("This overload is obsolete. Use the overloads with ResolveTypeOptions instead.")>]
static member ResolveType :
typeName : string *
tryLoadAssemblies : bool *
?allowPartialAssemblyMatch : bool
(* Defaults:
let _allowPartialAssemblyMatch = defaultArg allowPartialAssemblyMatch true
*)
-> Type
typeName can be generic and may contain fully or partially defined assembly names.
typeName can contain generic parameter types in the format as they are returned by the TypeExtensions.GetName extension method.