Marshal::FreeCoTaskMem Method (IntPtr)
Frees a block of memory allocated by the unmanaged COM task memory allocator.
Assembly: mscorlib (in mscorlib.dll)
CoTaskMemFree function, which frees all bytes so that you can no longer use the memory that the ptr parameter points to.exposes the COM
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1