ResolveEventArgs 类

定义

为加载程序解析事件(如 TypeResolveResourceResolveReflectionOnlyAssemblyResolveAssemblyResolve 事件)提供数据。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
继承
ResolveEventArgs
属性

注解

如果加载程序无法解析程序集引用并且为相应的加载程序解析事件提供处理程序, 则会引发事件, 并且ResolveEventArgs包含有关要解析的项的信息。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.

  • Name属性包含要解析的项的名称。The Name property contains the name of the item to be resolved.

  • .NET Framework 4.NET Framework 4从开始RequestingAssembly , 属性包含请求可提供命名项的程序集的程序集。Beginning with the .NET Framework 4.NET Framework 4, the RequestingAssembly property contains the assembly that requested an assembly that can provide the named item. 有关更多信息,请参见 RequestingAssembly 属性。For more information, see the RequestingAssembly property.

构造函数

ResolveEventArgs(String)

初始化 ResolveEventArgs 类的新实例,同时指定要解析的项的名称。Initializes a new instance of the ResolveEventArgs class, specifying the name of the item to resolve.

ResolveEventArgs(String, Assembly)

初始化 ResolveEventArgs 类的新实例,同时指定要解析的项的名称以及正在解析其依赖项的程序集。Initializes a new instance of the ResolveEventArgs class, specifying the name of the item to resolve and the assembly whose dependency is being resolved.

属性

Name

获取要解析的项的名称。Gets the name of the item to resolve.

RequestingAssembly

获取正在解析其依赖项的程序集。Gets the assembly whose dependency is being resolved.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅