UnmanagedFunctionPointerAttribute.SetLastError Field


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

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public bool SetLastError

Field Value

Type: System.Boolean

The 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 SetLastError.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top