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 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

이 대리자가 만드는 Exception입니다.

확장 메서드

GetMethodInfo(Delegate)

지정된 대리자가 나타내는 메서드를 나타내는 개체를 가져옵니다.

적용 대상