ICorDebugAppDomain

更新:2007 年 11 月

提供用于调试应用程序域的方法。

interface ICorDebugAppDomain : ICorDebugController {
        
    HRESULT Attach ();
        
    HRESULT EnumerateAssemblies (
        [out] IcorDebugAssemblyEnum      **ppAssemblies
    );
        
    HRESULT EnumerateBreakpoints (
        [out] IcorDebugBreakpointEnum    **ppBreakpoints
    );
        
    HRESULT EnumerateSteppers (
        [out] IcorDebugStepperEnum       **ppSteppers
    );
        
    HRESULT GetID (
        [out] unsigned int               *pId
    );
        
    HRESULT GetModuleFromMetaDataInterface (
        [in] IUnknown                    *pIMetaData,
        [out] ICorDebugModule            **ppModule
    );
        
    HRESULT GetName (
        [in] unsigned int                cchName, 
        [out] unsigned int               *pcchName, 
        [out] ICorDebugAppDomain         szName
    );
        
    HRESULT GetObject (
        [out] ICorDebugValue             **ppObject
    );
        
    HRESULT GetProcess (
        [out] IcorDebugProcess           **ppProcess
    );
        
    HRESULT IsAttached (
        [out] long                       *pbAttached
    );
        
};

方法

方法

说明

ICorDebugAppDomain::Attach 方法

将调试器附加到应用程序域。

ICorDebugAppDomain::EnumerateAssemblies 方法

获取应用程序域中程序集的枚举数。

ICorDebugAppDomain::EnumerateBreakpoints 方法

获取应用程序域中所有活动断点的枚举数。

ICorDebugAppDomain::EnumerateSteppers 方法

获取应用程序域中所有活动分档器的枚举数。

ICorDebugAppDomain::GetId 方法

获取应用程序域的唯一 ID。

ICorDebugAppDomain::GetModuleFromMetaDataInterface 方法

通过给定的元数据接口获取 ICorDebugModule 对象。

ICorDebugAppDomain::GetName 方法

获取应用程序域的名称。

ICorDebugAppDomain::GetObject 方法

未实现。

ICorDebugAppDomain::GetProcess 方法

获取包含应用程序域的进程。

ICorDebugAppDomain::IsAttached 方法

确定调试器是否已附加到应用程序域。

要求

**平台:**请参见 .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

请参见

参考

ICorDebugAppDomain2

其他资源

调试接口