System.Runtime.InteropServices.Marshal.ZeroFreeCoTaskMemUnicode Method

Frees an unmanaged string pointer that was allocated using the Marshal.SecureStringToCoTaskMemUnicode(System.Security.SecureString) method.

Syntax

public static void ZeroFreeCoTaskMemUnicode (IntPtr s)

Parameters

s
The address of the unmanaged string to free.

Remarks

The Marshal.ZeroFreeCoTaskMemUnicode(IntPtr) method first zeros out and then frees unmanaged memory that was allocated using the Marshal.SecureStringToCoTaskMemUnicode(System.Security.SecureString) method.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0