Edit

Share via


ResolveEventArgs Class

Definition

Provides data for loader resolution events, such as the TypeResolve, ResourceResolve, ReflectionOnlyAssemblyResolve, and AssemblyResolve events.

public class ResolveEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(true)]
public class ResolveEventArgs : EventArgs
Inheritance
ResolveEventArgs
Attributes

Remarks

When the loader cannot resolve an assembly reference and a handler has been provided for the appropriate loader resolution event, the event is raised and the ResolveEventArgs contains information about the item to be resolved.

  • The Name property contains the name of the item to be resolved.

  • Beginning with the .NET Framework 4, the RequestingAssembly property contains the assembly that requested an assembly that can provide the named item. For more information, see the RequestingAssembly property.

Constructors

ResolveEventArgs(String, Assembly)

Initializes a new instance of the ResolveEventArgs class, specifying the name of the item to resolve and the assembly whose dependency is being resolved.

ResolveEventArgs(String)

Initializes a new instance of the ResolveEventArgs class, specifying the name of the item to resolve.

Properties

Name

Gets the name of the item to resolve.

RequestingAssembly

Gets the assembly whose dependency is being resolved.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 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
.NET Standard 2.0, 2.1

See also