SecurityManager.SecurityEnabled 속성

정의

주의

이 API는 이제 사용되지 않습니다.

주의

Because security can no longer be turned off permanently, setting the SecurityEnabled property no longer has any effect. Reading the property will still indicate whether security has been turned off temporarily.

주의

Because security can no longer be turned off, the SecurityEnabled property no longer has any effect.

보안을 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 static property bool SecurityEnabled { bool get(); void set(bool value); };
[System.Obsolete]
public static bool SecurityEnabled { get; set; }
public static bool SecurityEnabled { get; set; }
[System.Obsolete("Because security can no longer be turned off permanently, setting the SecurityEnabled property no longer has any effect. Reading the property will still indicate whether security has been turned off temporarily.")]
public static bool SecurityEnabled { get; set; }
[System.Obsolete("Because security can no longer be turned off, the SecurityEnabled property no longer has any effect.")]
public static bool SecurityEnabled { get; set; }
[<System.Obsolete>]
static member SecurityEnabled : bool with get, set
static member SecurityEnabled : bool with get, set
[<System.Obsolete("Because security can no longer be turned off permanently, setting the SecurityEnabled property no longer has any effect. Reading the property will still indicate whether security has been turned off temporarily.")>]
static member SecurityEnabled : bool with get, set
[<System.Obsolete("Because security can no longer be turned off, the SecurityEnabled property no longer has any effect.")>]
static member SecurityEnabled : bool with get, set
Public Shared Property SecurityEnabled As Boolean

속성 값

true보안을 사용하도록 설정하면 이고, 그렇지 않으면 . false

특성

예외

이 메서드 ControlPolicy를 호출하는 코드에는 .

설명

이 속성은 Caspol.exe(코드 액세스 보안 정책 도구)에서 사용됩니다.

-security (-s) 코드 기반 보안을 해제하는 옵션입니다.

SecurityEnabled 는 관리자가 코드 액세스 보안을 사용하지 않도록 설정하는 방법을 제공합니다. 코드 액세스 보안을 사용하지 않도록 설정하면 모든 코드 액세스 요구가 성공합니다. 효과적으로 모든 코드를 FullTrust부여합니다. 코드 액세스 보안을 사용하지 않도록 설정하면 코드가 모든 코드에 부여하는 FullTrust 동일한 보안 정책보다 약간 더 잘 수행될 수 있도록 보안 시스템을 무시합니다. 이 속성은 역할 기반 보안을 사용하지 않도록 설정하지 않습니다. 따라서 PrincipalPermission 요구는 영향을 받지 않습니다.

Caution

그러나 코드 액세스 보안을 해제하면 시스템이 바이러스나 웜과 같은 악의적 코드를 사용한 공격에 취약해집니다. 코드 액세스 보안을 사용하지 않도록 설정해도 관리 코드가 어떤 방식으로도 실행되지 않도록 자동으로 차단되지는 않습니다. 코드 액세스 보안 시스템의 제한 없이 관리 코드만 실행되도록 하며, 가장 주의해야 합니다. 추가 성능을 얻기 위해 보안을 해제하는 것은 시스템 보안을 보호하기 위해 다른 보안 조치가 취해진 경우에만 수행해야 합니다. 다른 보안 예방 조치의 예로 공용 네트워크에서 연결을 끊거나 컴퓨터를 물리적으로 보호하는 경우를 들 수 있습니다.

이 속성에 대한 변경 내용은 호출될 때까지 SavePolicy 레지스트리에 유지되지 않습니다. 새 프로세스는 레지스트리에 유지될 때까지 변경 내용의 영향을 받지 않습니다. 실행 중인 프로세스에서 이 속성의 값을 변경해도 필요한 방식으로 상태를 변경할 필요는 없습니다. 변경 내용이 적용되었는지 확인하려면 새 프로세스를 호출 SavePolicy 하고 시작해야 합니다.

적용 대상