Marshal.ReAllocHGlobal Method (IntPtr, IntPtr)
Resizes a block of memory previously allocated with AllocHGlobal.
Assembly: mscorlib (in mscorlib.dll)
[SecurityCriticalAttribute] public static IntPtr ReAllocHGlobal( IntPtr pv, IntPtr cb )
There is insufficient memory to satisfy the request.
This method exposes the Win32 GlobalReAlloc function from Kernel32.dll. The returned pointer can differ from the original. If it is different, the contents of the original memory block have been copied to the new block, and the original memory block has been freed.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1