Editare

Partajați prin


ResolveEventArgs Class

Definition

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

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

See also