NativeObjectSecurity.ExceptionFromErrorCode Delegato

Definizione

Fornisce un metodo per gli integratori per il mapping dei codici di errore numerici a specifiche eccezioni create dagli integratori stessi.

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 

Parametri

errorCode
Int32

Codice di errore numerico.

name
String

Nome dell'oggetto da proteggere a cui è associato l'oggetto NativeObjectSecurity.

handle
SafeHandle

Handle dell'oggetto da proteggere a cui è associato l'oggetto NativeObjectSecurity.

context
Object

Oggetto che contiene le informazioni contestuali sull'origine o sulla destinazione dell'eccezione.

Valore restituito

Exception

Classe Exception creata da questo delegato.

Metodi di estensione

GetMethodInfo(Delegate)

Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.

Si applica a