SecurityException.Method 속성

정의

예외와 관련된 메서드에 대한 정보를 가져오거나 설정합니다.

public:
 property System::Reflection::MethodInfo ^ Method { System::Reflection::MethodInfo ^ get(); void set(System::Reflection::MethodInfo ^ value); };
public System.Reflection.MethodInfo? Method { get; set; }
public System.Reflection.MethodInfo Method { get; set; }
[System.Runtime.InteropServices.ComVisible(false)]
public System.Reflection.MethodInfo Method { get; set; }
member this.Method : System.Reflection.MethodInfo with get, set
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.Method : System.Reflection.MethodInfo with get, set
Public Property Method As MethodInfo

속성 값

MethodInfo

메서드를 설명하는 MethodInfo 개체입니다.

특성

설명

중요

신뢰할 수 없는 데이터로 이 개체의 인스턴스를 사용하는 것은 보안상 위험합니다. 신뢰할 수 있는 데이터로만 이 개체를 사용하세요. 자세한 내용은 모든 입력 유효성 검사를 참조하세요.

이 속성은 다음 중 하나를 포함합니다.

  • 예외를 트리거한 보안 검사가 발생했을 때 실패한 어셈블리가 실행된 메서드에 대한 정보입니다.

  • 호출 스택에 A PermitOnly 또는 Deny 보안 작업을 배치한 메서드에 대한 정보입니다(오류 발생 PermitOnly 시 또는 Deny.).

  • null는 특정 메서드에 특성을 지정할 수 없는 오류의 경우

개체는 MethodInfo 메서드를 고유하게 식별하는 메서드 이름, 클래스 이름 및 어셈블리 이름 정보를 제공합니다.

적용 대상