ICorDebugStringValue

更新:2007 年 11 月

应用于字符串值的 ICorDebugHeapValue 的子类。

interface ICorDebugStringValue : ICorDebugHeapValue {
        
    HRESULT GetLength (
        [out] ULONG32   *pcchString
    );
        
    HRESULT GetString (
        [in] ULONG32    cchString,
        [out] ULONG32   *pcchString,
        [out, size_is(cchString), length_is(*pcchString)] 
            WCHAR       szString[]
    );
        
};

方法

方法

说明

ICorDebugStringValue::GetLength 方法

获取此 ICorDebugStringValue 引用的字符串中的字符数。

ICorDebugStringValue::GetString 方法

获取此 ICorDebugStringValue 引用的字符串。

要求

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

请参见

参考

ICorDebugHeapValue

其他资源

调试接口