共用方式為


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 方法

取得應用程式定義域中所有現用 Stepper 的列舉值。

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

其他資源

偵錯介面