ReflectorResolveAssembly(AssemblyNameInfo, ResolveAssemblyOptions) Method
Gets the
Assembly with the specified
assemblyName.
Namespace: KGySoft.ReflectionAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
[CLSCompliantAttribute(false)]
public static Assembly? ResolveAssembly(
AssemblyNameInfo assemblyName,
ResolveAssemblyOptions options = ResolveAssemblyOptions.TryToLoadAssembly|ResolveAssemblyOptions.AllowPartialMatch
)
<CLSCompliantAttribute(false)>
Public Shared Function ResolveAssembly (
assemblyName As AssemblyNameInfo,
Optional options As ResolveAssemblyOptions = ResolveAssemblyOptions.TryToLoadAssembly Or ResolveAssemblyOptions.AllowPartialMatch
) As Assembly
public:
[CLSCompliantAttribute(false)]
static Assembly^ ResolveAssembly(
AssemblyNameInfo^ assemblyName,
ResolveAssemblyOptions options = ResolveAssemblyOptions::TryToLoadAssembly|ResolveAssemblyOptions::AllowPartialMatch
)
[<CLSCompliantAttribute(false)>]
static member ResolveAssembly :
assemblyName : AssemblyNameInfo *
?options : ResolveAssemblyOptions
(* Defaults:
let _options = defaultArg options ResolveAssemblyOptions.TryToLoadAssembly|ResolveAssemblyOptions.AllowPartialMatch
*)
-> Assembly
- assemblyName AssemblyNameInfo
- Name of the Assembly to retrieve. May contain a fully or partially defined assembly name.
- options ResolveAssemblyOptions (Optional)
- The options for resolving the assembly. This parameter is optional.
Default value: TryToLoadAssembly, AllowPartialMatch.
AssemblyAn
Assembly instance with the loaded assembly, or
if
the
ThrowError flag is not enabled in
options and
assemblyName could not be resolved with the provided
options.