更新: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
);
};
方法
方法 |
说明 |
|---|---|
将调试器附加到应用程序域。 |
|
获取应用程序域中程序集的枚举数。 |
|
获取应用程序域中所有活动断点的枚举数。 |
|
获取应用程序域中所有活动分档器的枚举数。 |
|
获取应用程序域的唯一 ID。 |
|
通过给定的元数据接口获取 ICorDebugModule 对象。 |
|
获取应用程序域的名称。 |
|
未实现。 |
|
获取包含应用程序域的进程。 |
|
确定调试器是否已附加到应用程序域。 |
要求
**平台:**请参见 .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