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

속성 값

HostProtectionResource

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

설명

이 속성은 예외가 throw된 요청된 호스트 보호 범주를 반환합니다. 예를 들어 메서드 HostProtectionAttribute 에 공유 상태를 노출하는 특성을 포함하는 경우를 가정해 보겠습니다. 메서드가 호출 HostProtectionAttribute 되면 공유 상태에 대한 링크 요청이 수행됩니다. 호스트가 공유 상태를 금지된 범주로 설정한 경우 a HostProtectionException 가 발생하고 속성 값 DemandedResourcesHostProtectionResource.SharedState됩니다.

적용 대상