共用方式為


ICorDebugStringValue::GetLength 方法

取得此 ICorDebugStringValue 所參考字串中的字元數目。

語法

HRESULT GetLength (
    [out] ULONG32   *pcchString
);

參數

pcchString [出]指向值的指標,可指定此 ICorDebugStringValue 物件所參考字串的長度。

需求

平台: 請參閱 .NET 支援的作業系統

標題: CorDebug.idl、CorDebug.h

圖書館: CorGuids.lib

.NET 版本: 自 .NET Framework 1.0 起提供