Marshal.AllocHGlobal Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Allocates memory from the unmanaged memory of the process.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAllocHGlobal(Int32)

Allocates memory from the unmanaged memory of the process by using the specified number of bytes.

System_CAPS_pubmethodSystem_CAPS_staticAllocHGlobal(IntPtr)

Allocates memory from the unmanaged memory of the process by using the pointer to the specified number of bytes.

Return to top
Show: