Share via


HostProtectionException.DemandedResources 속성

정의

예외를 throw한 요청된 호스트 보호 리소스를 가져오거나 설정합니다.

public:
 property System::Security::Permissions::HostProtectionResource DemandedResources { System::Security::Permissions::HostProtectionResource get(); };
public System.Security.Permissions.HostProtectionResource DemandedResources { get; }
member this.DemandedResources : System.Security.Permissions.HostProtectionResource
Public ReadOnly Property DemandedResources As HostProtectionResource

속성 값

예외를 throw한 보호 리소스를 식별하는 HostProtectionResource 값의 비트 조합입니다. 기본값은 None입니다.

설명

이 속성은 예외가 throw된 요청된 호스트 보호 범주를 반환합니다. 예를 들어 메서드에 공유 HostProtectionAttribute 상태를 노출한다는 것을 나타내는 특성이 있다고 가정합니다. 메서드가 호출되면 는 HostProtectionAttribute 공유 상태에 대한 링크 요청을 수행합니다. 호스트가 공유 상태를 금지된 범주 HostProtectionException 로 설정한 경우 가 발생하고 속성 값이 DemandedResources 입니다 HostProtectionResource.SharedState.

적용 대상