Marshal.ZeroFreeCoTaskMemUTF8(IntPtr) Method
Definition
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 StringToCoTaskMemUTF8(String) method.
public:
static void ZeroFreeCoTaskMemUTF8(IntPtr s);
public static void ZeroFreeCoTaskMemUTF8 (IntPtr s);
[System.Security.SecurityCritical]
public static void ZeroFreeCoTaskMemUTF8 (IntPtr s);
static member ZeroFreeCoTaskMemUTF8 : nativeint -> unit
[<System.Security.SecurityCritical>]
static member ZeroFreeCoTaskMemUTF8 : nativeint -> unit
Public Shared Sub ZeroFreeCoTaskMemUTF8 (s As IntPtr)
Parameters
- s
-
IntPtr
nativeint
The address of the unmanaged string to free.
- Attributes
Remarks
The ZeroFreeCoTaskMemUTF8 method first zeros out and then frees unmanaged memory that was allocated using the StringToCoTaskMemUTF8 method.
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.