NativeObjectSecurity.ExceptionFromErrorCode 代理人

定義

提供方法,便於整合子 (Integrator) 將數字錯誤碼對應至其建立的特定例外狀況。

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 

參數

errorCode
Int32

數值錯誤碼。

name
String

NativeObjectSecurity 物件相關聯之安全物件的名稱。

handle
SafeHandle

NativeObjectSecurity 物件相關聯之安全物件的控制代碼。

context
Object

包含來源或目的地例外狀況相關內容資訊的物件。

傳回值

這個委派 (Delegate) 建立的 Exception

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於