Export (0) Print
Expand All

XamlSchemaContext.OnAssemblyResolve Method

.NET Framework 4.6 and 4.5

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
)

Parameters

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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft