Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Marshal.ZeroFreeCoTaskMemUnicode(IntPtr) Method

Definition

Namespace:
System.Runtime.InteropServices
Assemblies:
mscorlib.dll, System.Runtime.InteropServices.dll
Assemblies:
netstandard.dll, System.Runtime.InteropServices.dll
Assembly:
System.Runtime.InteropServices.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
Marshal.cs
Source:
Marshal.cs
Source:
Marshal.cs
Source:
Marshal.cs
Source:
Marshal.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public:
 static void ZeroFreeCoTaskMemUnicode(IntPtr s);
[System.Security.SecurityCritical]
public static void ZeroFreeCoTaskMemUnicode(IntPtr s);
public static void ZeroFreeCoTaskMemUnicode(IntPtr s);
[<System.Security.SecurityCritical>]
static member ZeroFreeCoTaskMemUnicode : nativeint -> unit
static member ZeroFreeCoTaskMemUnicode : nativeint -> unit
Public Shared Sub ZeroFreeCoTaskMemUnicode (s As IntPtr)

Parameters

s
IntPtr

nativeint

The address of the unmanaged string to free.

Attributes

Remarks

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

Applies to


Feedback

Was this page helpful?