HostProtectionResource 열거형
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
Code Access Security is not supported or honored by the runtime.
메서드 또는 클래스에서 호출하는 경우 호스트에 잠재적으로 해로울 수 있는 기능 범주를 지정합니다.
이 열거형은 멤버 값의 비트 조합을 지원합니다.
public enum class HostProtectionResource
[System.Flags]
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public enum HostProtectionResource
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum HostProtectionResource
[System.Flags]
public enum HostProtectionResource
[<System.Flags>]
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type HostProtectionResource =
[<System.Flags>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type HostProtectionResource =
[<System.Flags>]
type HostProtectionResource =
Public Enum HostProtectionResource
- 상속
- 특성
필드
| Name | 값 | Description |
|---|---|---|
| None | 0 | 호스트 리소스를 노출하지 않습니다. |
| Synchronization | 1 | 동기화를 노출합니다. |
| SharedState | 2 | 스레드 간에 공유할 수 있는 상태를 노출합니다. |
| ExternalProcessMgmt | 4 | 다른 프로세스를 만들거나 삭제할 수 있습니다. |
| SelfAffectingProcessMgmt | 8 | 현재 프로세스를 종료하여 서버를 종료할 수 있습니다. |
| ExternalThreading | 16 | 호스트에 해로울 수 있는 자체 스레드가 아닌 다른 스레드를 만들거나 조작합니다. |
| SelfAffectingThreading | 32 | 사용자 코드에만 영향을 주는 방식으로 스레드를 조작합니다. |
| SecurityInfrastructure | 64 | 보안 인프라를 노출합니다. |
| UI | 128 | 사용자 인터페이스를 노출합니다. |
| MayLeakOnAbort | 256 | 안전한 핸들 또는 리소스 릴리스를 보장하는 다른 수단으로 보호되지 않는 경우 종료 시 리소스 누수가 발생할 수 있습니다. |
| All | 511 | 모든 호스트 리소스를 노출합니다. |
설명
Caution
CAS(코드 액세스 보안)는 모든 버전의 .NET Framework 및 .NET에서 더 이상 사용되지 않습니다. 최신 버전의 .NET은 CAS 주석을 준수하지 않으며 CAS 관련 API를 사용하는 경우 오류가 발생합니다. 개발자는 보안 작업을 수행하는 다른 방법을 찾아야 합니다.
HostProtectionAttribute 속성에서 이 열거형이 사용된다.