AppDomainManager.CheckSecuritySettings(SecurityState) 메서드

정의

애플리케이션 도메인에서 지정된 작업이 허용되는지 여부를 나타냅니다.

public:
 virtual bool CheckSecuritySettings(System::Security::SecurityState ^ state);
public virtual bool CheckSecuritySettings(System.Security.SecurityState state);
abstract member CheckSecuritySettings : System.Security.SecurityState -> bool
override this.CheckSecuritySettings : System.Security.SecurityState -> bool
Public Overridable Function CheckSecuritySettings (state As SecurityState) As Boolean

매개 변수

state
SecurityState

해당 하위 클래스 SecurityState 는 보안 상태가 요청된 작업을 식별합니다.

반품

true 호스트가 애플리케이션 도메인에서 지정된 state 작업을 수행할 수 있도록 허용하면 이고, false그렇지 않으면 .

설명

이 메서드의 기본 구현은 .false

이 메서드는 격리된 스토리지 할당량을 IsolatedStorageFile.IncreaseQuotaTo 늘리기 위해 메서드를 호출할 때 호출됩니다. CLR(공용 언어 런타임)을 호스트하는 애플리케이션은 개체(상속CheckSecuritySettings)에 IsolatedStorageSecurityState 따라 정책 결정을 수행하도록 메서드를 재정 SecurityState 의한 다음 증가를 허용하거나 방지할 수 있습니다. 예를 들어 호스트는 최종 사용자에게 할당량을 늘리기 위한 요청을 승인하거나 거부하라는 메시지를 표시할 수 있습니다. 호스트의 구현 CheckSecuritySettings 은 서비스 거부 공격의 가능성을 고려해야 합니다. 예를 들어 단추 클릭과 같이 사용자가 시작한 이벤트에서 메서드를 호출한 경우에만 사용자에게 메시지를 표시해야 합니다.

적용 대상