NativeObjectSecurity.ExceptionFromErrorCode Delegat

Definition

Bietet eine Möglichkeit für Integratoren, numerische Fehlercodes bestimmten Ausnahmen zuzuordnen, die sie erstellen.

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 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 ist.

handle
SafeHandle

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

context
Object

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

Rückgabewert

Dieser Delegat Exception erstellt.

Erweiterungsmethoden

Name Beschreibung
GetMethodInfo(Delegate)

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

Gilt für: