XamlSchemaContext.OnAssemblyResolve(String) Method

Definition

Called when operations use this schema context to resolve an assembly that is required in order to resolve the XAML namespaces that it contains.

protected internal virtual System.Reflection.Assembly OnAssemblyResolve (string assemblyName);

Parameters

assemblyName
String

The name of the assembly to load.

Returns

The resolved assembly.

Remarks

The underlying assembly resolution technique, which is an internal API, has built-in tolerances for different string forms of an assembly name as based on the AssemblyName construction behavior.

The purpose of this API is to enable first-opportunity resolution against known sets of assemblies, such as against reference assemblies instead of against a global assembly cache. If the list of reference assemblies is populated, the default implementation can access the known reference assemblies.

Applies to

Produkt Versjoner
.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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9