XamlSchemaContext.OnAssemblyResolve(String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 public:
virtual System::Reflection::Assembly ^ OnAssemblyResolve(System::String ^ assemblyName);
protected internal virtual System.Reflection.Assembly OnAssemblyResolve (string assemblyName);
abstract member OnAssemblyResolve : string -> System.Reflection.Assembly
override this.OnAssemblyResolve : string -> System.Reflection.Assembly
Protected Friend Overridable Function OnAssemblyResolve (assemblyName As String) As Assembly
- assemblyName
- String
The name of the assembly to load.
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.
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 |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: