Marshal.ZeroFreeCoTaskMemUnicode Method (IntPtr)

 

Frees an unmanaged string pointer that was allocated using the SecureStringToCoTaskMemUnicode method.

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

[SecurityCriticalAttribute]
public static void ZeroFreeCoTaskMemUnicode(
	IntPtr s
)

Parameters

s
Type: System.IntPtr

The address of the unmanaged string to free.

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

SecurityCriticalAttribute

requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: