System.Runtime.InteropServices.Marshal.ZeroFreeGlobalAllocUnicode Method

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

Syntax

public static void ZeroFreeGlobalAllocUnicode (IntPtr s)

Parameters

s
The address of the unmanaged string to free.

Remarks

The Marshal.ZeroFreeGlobalAllocUnicode(IntPtr) method first zeros out and then frees unmanaged memory that was allocated using the Marshal.SecureStringToGlobalAllocUnicode(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