Note
Depending on the type system of the current platform it can happen that a new assembly of an unmatching identity is loaded even if this flag is disabled.
In such case the loaded assembly is not returned though.
[FlagsAttribute]
public enum ResolveAssemblyOptions
<FlagsAttribute>
Public Enumeration ResolveAssemblyOptions
[FlagsAttribute]
public enum class ResolveAssemblyOptions
[<FlagsAttribute>]
type ResolveAssemblyOptions
None | 0x00 | Represents no enabled options. |
TryToLoadAssembly | 0x01 | If this flag is enabled, then the Reflector.ResolveAssembly methods try to load the assembly if it is not loaded yet. Otherwise, the assembly is tried to be located among the already loaded assemblies. Default state at Reflector.ResolveAssembly methods: Enabled |
AllowPartialMatch | 0x02 | If this flag is enabled, then the Reflector.ResolveAssembly methods allow to return an already loaded assembly of any version, culture and public key token, or, if the assembly is not loaded, this flag allows to load it by partial identity if possible. If this flag is disabled, then the provided assembly information must match (which still can be a partial name). Default state at Reflector.ResolveAssembly methods: Enabled |
ThrowError | 0x10 | If this flag is enabled and the assembly cannot be resolved, then a ReflectionException will be thrown from the Reflector.ResolveAssembly methods. Default state at Reflector.ResolveAssembly methods: Disabled |