NativeObjectSecurity.ExceptionFromErrorCode Delegat

Definicja

Umożliwia integratorom mapowanie kodów błędów liczbowych na określone utworzone wyjątki.

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 

Parametry

errorCode
Int32

Kod błędu liczbowego.

name
String

Nazwa zabezpieczanego obiektu, z którym NativeObjectSecurity jest skojarzony obiekt.

handle
SafeHandle

Uchwyt zabezpieczanego obiektu, z którym NativeObjectSecurity jest skojarzony obiekt.

context
Object

Obiekt zawierający kontekstowe informacje o źródle lub miejscu docelowym wyjątku.

Wartość zwracana

Ten Exception delegat tworzy.

Metody rozszerzania

GetMethodInfo(Delegate)

Pobiera obiekt reprezentujący metodę reprezentowaną przez określonego delegata.

Dotyczy