Marshal::ZeroFreeCoTaskMemUnicode Method (IntPtr)
.NET Framework (current version)
Frees an unmanaged string pointer that was allocated using the SecureStringToCoTaskMemUnicode method.
Assembly: mscorlib (in mscorlib.dll)
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
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: