NativeObjectSecurity.ExceptionFromErrorCode Delegat

Definition

Ermöglicht Integratoren, bestimmten von ihnen erstellen Ausnahmen numerische Fehlercodes zuzuordnen.

public protected delegate Exception ^ NativeObjectSecurity::ExceptionFromErrorCode(int errorCode, System::String ^ name, SafeHandle ^ handle, System::Object ^ context);
protected internal delegate Exception NativeObjectSecurity.ExceptionFromErrorCode(int errorCode, string name, SafeHandle handle, object context);
protected internal delegate Exception? NativeObjectSecurity.ExceptionFromErrorCode(int errorCode, string? name, SafeHandle? handle, object? context);
Protected Friend Delegate Function NativeObjectSecurity.ExceptionFromErrorCode(errorCode As Integer, name As String, handle As SafeHandle, context As Object) As Exception 

Parameter

errorCode
Int32

Der numerische Fehlercode.

name
String

Der Name des sicherungsfähigen Objekts, dem das NativeObjectSecurity-Objekt zugeordnet wird.

handle
SafeHandle

Das Handle des sicherungsfähigen Objekts, dem das NativeObjectSecurity-Objekt zugeordnet wird.

context
Object

Ein Objekt, das Kontextinformationen zur Quelle oder zum Ziel der Ausnahme enthält.

Rückgabewert

Die von diesem Delegaten erstellte Exception.

Erweiterungsmethoden

GetMethodInfo(Delegate)

Ruft ein Objekt ab, das die Methode darstellt, die vom angegebenen Delegaten dargestellt wird.

Gilt für: