다음을 통해 공유


SecurityException.RefusedSet 속성

SecurityException을 발생시킨 어셈블리에 거부된 권한 집합을 가져오거나 설정합니다.

네임스페이스: System.Security
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
Public Property RefusedSet As String
‘사용 방법
Dim instance As SecurityException
Dim value As String

value = instance.RefusedSet

instance.RefusedSet = value
public string RefusedSet { get; set; }
public:
property String^ RefusedSet {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_RefusedSet ()

/** @property */
public void set_RefusedSet (String value)
public function get RefusedSet () : String

public function set RefusedSet (value : String)

속성 값

어셈블리에 거부된 권한 집합의 XML 표현입니다.

설명

이 속성에는 AllowPartiallyTrustedCallersAttribute 검사에 관한 예외의 데이터 외에 보안 예외의 관련 데이터가 포함되어 있지 않을 수도 있습니다.

예제

다음 코드 예제에서는 RefusedSet 속성을 사용하여 보안 검사 실패의 원인에 해당하는 어셈블리에 거부된 권한 집합을 표시하는 방법을 보여 줍니다. 이 코드 예제는 SecurityException 클래스에 대해 제공되는 보다 큰 예제의 일부입니다.

Display("The refused permission set is: " & _
    sE.RefusedSet.ToString())
Display("The refused permission set is: " + 
    (sE.RefusedSet).ToString());
Display("The refused permission set is: {0}",
    exception->RefusedSet);

.NET Framework 보안

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1에서 지원

참고 항목

참조

SecurityException 클래스
SecurityException 멤버
System.Security 네임스페이스