SecurityException.Method 속성

정의

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

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

속성 값

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

특성

설명

Important

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

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

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

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

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

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

적용 대상