ResolveEventArgs ResolveEventArgs ResolveEventArgs ResolveEventArgs Class

Definition

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

public ref class ResolveEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(true)]
public class ResolveEventArgs : EventArgs
type ResolveEventArgs = class
    inherit EventArgs
Public Class ResolveEventArgs
Inherits EventArgs
Inheritance
ResolveEventArgsResolveEventArgsResolveEventArgsResolveEventArgs
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) ResolveEventArgs(String) ResolveEventArgs(String) ResolveEventArgs(String)

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

ResolveEventArgs(String, Assembly) ResolveEventArgs(String, Assembly) ResolveEventArgs(String, Assembly) 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.

Properties

Name Name Name Name

Gets the name of the item to resolve.

RequestingAssembly RequestingAssembly RequestingAssembly RequestingAssembly

Gets the assembly whose dependency is being resolved.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also