Marshal.ZeroFreeCoTaskMemUTF8(IntPtr) Method

Definition

Frees an unmanaged string pointer that was allocated using the StringToCoTaskMemUTF8(String) method.

public static void ZeroFreeCoTaskMemUTF8 (IntPtr s);
[System.Security.SecurityCritical]
public static void ZeroFreeCoTaskMemUTF8 (IntPtr s);

Parameters

s
IntPtr

The address of the unmanaged string to free.

Attributes

Remarks

The ZeroFreeCoTaskMemUTF8 method first zeros out and then frees unmanaged memory that was allocated using the StringToCoTaskMemUTF8 method.

Applies to

Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1