NativeObjectSecurity.ExceptionFromErrorCode 代理人

定義

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

C#
protected internal delegate Exception? NativeObjectSecurity.ExceptionFromErrorCode(int errorCode, string? name, SafeHandle? handle, object? context);
C#
protected internal delegate Exception NativeObjectSecurity.ExceptionFromErrorCode(int errorCode, string name, SafeHandle handle, object context);

參數

errorCode
Int32

數值錯誤碼。

name
String

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

handle
SafeHandle

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

context
Object

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

傳回值

這個委派 (Delegate) 建立的 Exception

擴充方法

GetMethodInfo(Delegate)

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

適用於

產品 版本
.NET Core 1.0, Core 1.1, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5