Редагувати

Поділитися через


Marshal.SetLastPInvokeError(Int32) Method

Definition

Sets the last platform invoke error on the current thread.

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

Parameters

error
Int32

The error to set.

Remarks

The last platform invoke error is stored per-thread and can be retrieved using GetLastPInvokeError.

Applies to