ICorDebugAssembly

更新:2007 年 11 月

表示一个程序集。

interface ICorDebugAssembly : IUnknown {
    HRESULT EnumerateModules (
        [out] ICorDebugModuleEnum **ppModules
    );
        
    HRESULT GetAppDomain (
        [out] ICorDebugAppDomain  **ppAppDomain
    );
        
    HRESULT GetCodeBase (
        [in] ULONG32  cchName,
        [out] ULONG32 *pcchName,
        [out, size_is(cchName), length_is(*pcchName)] 
            WCHAR szName[]
    );
        
    HRESULT GetName (
        [in] ULONG32  cchName,
        [out] ULONG32 *pcchName,
        [out, size_is(cchName), length_is(*pcchName)]
            WCHAR szName[]
    );
        
    HRESULT GetProcess (
        [out] ICorDebugProcess **ppProcess
    );
};

方法

方法

说明

ICorDebugAssembly::EnumerateModules 方法

为包含在该程序集中的模块获取枚举数。

ICorDebugAssembly::GetAppDomain 方法

获取一个接口指针,该指针指向包含此 ICorDebugAssembly 实例的应用程序域。

ICorDebugAssembly::GetCodeBase 方法

在当前版本的 .NET Framework 中未实现。

ICorDebugAssembly::GetName 方法

获取程序集的名称。

ICorDebugAssembly::GetProcess 方法

获取正在运行该程序集的 ICorDebugProcess 实例。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**CorDebug.idl

**库:**CorGuids.lib

**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

请参见

参考

ICorDebugAssembly2

其他资源

调试接口