Share via


Marshal.SetLastSystemError(Int32) Méthode

Définition

Définit la dernière erreur système sur le thread actuel.

public:
 static void SetLastSystemError(int error);
public static void SetLastSystemError (int error);
static member SetLastSystemError : int -> unit
Public Shared Sub SetLastSystemError (error As Integer)

Paramètres

error
Int32

Erreur à définir.

Remarques

L’erreur système est basée sur le système d’exploitation actuel, errno c’est-à-dire sur Unix et SetLastError sur Windows.

S’applique à