KGy SOFT

ResolveAssemblyOptions Enumeration

KGy SOFT Core Libraries Help
Provides options for the Reflector.ResolveAssembly methods.

Namespace:  KGySoft.Reflection
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0
Syntax

[FlagsAttribute]
public enum ResolveAssemblyOptions
Members

  Member nameValueDescription
None0

Represents no enabled options.

TryToLoadAssembly1

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

AllowPartialMatch2

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).

Note 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.

Default state at Reflector.ResolveAssembly methods: Enabled

ThrowError16

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

See Also

Reference