NamespaceResolveEventArgs 类

定义

ReflectionOnlyNamespaceResolve 事件提供数据。Provides data for the ReflectionOnlyNamespaceResolve event.

public ref class NamespaceResolveEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(false)]
public class NamespaceResolveEventArgs : EventArgs
type NamespaceResolveEventArgs = class
    inherit EventArgs
Public Class NamespaceResolveEventArgs
Inherits EventArgs
继承
NamespaceResolveEventArgs
属性

构造函数

NamespaceResolveEventArgs(String, Assembly)

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

属性

NamespaceName

获取要解析的命名空间的名称。Gets the name of the namespace to resolve.

RequestingAssembly

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

ResolvedAssemblies

获取程序集的集合,当 ReflectionOnlyNamespaceResolve 事件的事件处理程序被调用时,该集合为空,即事件处理程序负责添加需要的程序集。Gets a collection of assemblies; when the event handler for the ReflectionOnlyNamespaceResolve event is invoked, the collection is empty, and the event handler is responsible for adding the necessary assemblies.

方法

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()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于