Freigeben über


UnmanagedFunctionPointerAttribute.SetLastError-Feld

 

Veröffentlicht: Oktober 2016

Gibt an, ob die aufgerufene Methode ruft die SetLastError Win32-API-Funktion vor der Rückgabe aus die attributierte Methode.

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

Syntax

public bool SetLastError
public:
bool SetLastError
val mutable SetLastError : bool
Public SetLastError As Boolean

Feldwert

Type: System.Boolean

Hinweise

Die SetLastError Feld false in der Standardeinstellung ruft der Aufrufer also SetLastError. Dieses Feld true an, dass der aufgerufene ruft SetLastError vor der Rückgabe aus die attributierte Methode.

Weitere Informationen finden Sie unter SetLastError.

Versionsinformationen

Universelle Windows-Plattform
Verfügbar seit 8
.NET Framework
Verfügbar seit 2.0
Portierbare Klassenbibliothek
Unterstützt in: portierbare .NET-Plattformen
Windows Phone Silverlight
Verfügbar seit 8.0
Windows Phone
Verfügbar seit 8.1

Siehe auch

DllImportAttribute
SetLastError
UnmanagedFunctionPointerAttribute-Klasse
System.Runtime.InteropServices-Namespace

Zurück zum Anfang