ICorProfilerInfo3::GetStringLayout2 Method

.NET Framework (current version)
 

Gets information about the layout of a string object. This method supersedes the ICorProfilerInfo2::GetStringLayout method.

HRESULT GetStringLayout2(  
    [out] ULONG *pStringLengthOffset,  
    [out] ULONG *pBufferOffset);  

Parameters

pStringLengthOffset
[out] A pointer to the offset of the location, relative to the ObjectID pointer, that stores the length of the string itself. The length is stored as a DWORD.

pBufferOffset
[out] A pointer to the offset of the buffer, relative to the ObjectID pointer, which stores the string of wide characters.

Strings may or may not be null-terminated.

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4

ICorProfilerInfo3 Interface
Profiling Interfaces

Show: