DeclarativeSecurityAction Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the security actions that can be performed using declarative security.
public enum class DeclarativeSecurityAction
public enum DeclarativeSecurityAction
type DeclarativeSecurityAction =
Public Enum DeclarativeSecurityAction
- Inheritance
Fields
Assert | 3 | The calling code can access the resource identified by the current permission object, even if callers higher in the stack have not been granted permission to access the resource. |
Demand | 2 | Check that all callers in the call chain have been granted the specified permission. |
Deny | 4 | Without further checks refuse Demand for the specified permission. |
InheritanceDemand | 7 | The derived class inheriting the class or overriding a method is required to have the specified permission. |
LinkDemand | 6 | Check that the immediate caller has been granted the specified permission. |
None | 0 | No declarative security action. |
PermitOnly | 5 | Without further checks, refuse the demand for all permissions other than those specified. |
RequestMinimum | 8 | Request the minimum permissions required for code to run. This action can only be used within the scope of the assembly. |
RequestOptional | 9 | Request additional permissions that are optional (not required to run). This request implicitly refuses all other permissions not specifically requested. This action can only be used within the scope of the assembly. |
RequestRefuse | 10 | Request that permissions that might be misused not be granted to the calling code. This action can only be used within the scope of the assembly. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기