NativeObjectSecurity.ExceptionFromErrorCode 委托

定义

为集成商提供将数字错误代码映射到它们创建的特定异常的方法。

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 

参数

errorCode
Int32

数字错误代码。

name
String

与之关联的安全对象 NativeObjectSecurity 的名称。

handle
SafeHandle

与之关联的安全对象 NativeObjectSecurity 句柄。

context
Object

一个对象,包含有关异常源或目标的上下文信息。

返回值

Exception 委托创建。

扩展方法

名称 说明
GetMethodInfo(Delegate)

获取一个对象,该对象表示由指定委托表示的方法。

适用于