HostProtectionException.DemandedResources 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
예외를 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 되면 공유 상태에 대한 링크 요청이 수행됩니다. 호스트가 공유 상태를 금지된 범주로 설정한 경우 a HostProtectionException 가 발생하고 속성 값 DemandedResources 이 HostProtectionResource.SharedState됩니다.