XamlSchemaContext.OnAssemblyResolve Method (String)

.NET Framework (current version)

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

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

protected internal virtual Assembly OnAssemblyResolve(
	string assemblyName


Type: System.String

The name of the assembly to load. See Remarks.

Return Value

Type: System.Reflection.Assembly

The resolved assembly.

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.

.NET Framework
Available since 4.0
Return to top