System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute.SetLastError Field

Indicates whether the callee calls the SetLastError Win32 API function before returning from the attributed method.

Syntax

public bool SetLastError

Remarks

The UnmanagedFunctionPointerAttribute.SetLastError field is false by default, which means the caller calls SetLastError. Set this field to true to indicate that the callee calls SetLastError before returning from the attributed method.

For more information, see DllImportAttribute.SetLastError.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0