ThreadPoolBoundHandle.FreeNativeOverlapped(NativeOverlapped*) Méthode

Définition

Important

Cette API n’est pas conforme CLS.

Libère la mémoire associée à une NativeOverlapped structure allouée par la AllocateNativeOverlapped méthode.

public:
 void FreeNativeOverlapped(System::Threading::NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
public void FreeNativeOverlapped(System.Threading.NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public void FreeNativeOverlapped(System.Threading.NativeOverlapped* overlapped);
[<System.CLSCompliant(false)>]
member this.FreeNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> unit
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
member this.FreeNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> unit

Paramètres

overlapped
NativeOverlapped*

Pointeur non managé vers la NativeOverlapped structure à libérer.

Attributs

Exceptions

overlapped a la valeur null.

Cette méthode a été appelée après la suppression de l’objet ThreadPoolBoundHandle .

Remarques

Avertissement

Vous devez appeler la FreeNativeOverlapped méthode exactement une fois sur chaque NativeOverlapped pointeur non managé alloué à l’aide de la AllocateNativeOverlapped méthode. Si vous n’appelez pas la méthode, vous allez fuiter de FreeNativeOverlapped la mémoire. Si vous appelez la FreeNativeOverlapped méthode plusieurs fois sur le même NativeOverlapped pointeur non managé, la mémoire est endommagée.

S’applique à