DataProtectionPermissionFlags 열거형
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
Code Access Security is not supported or honored by the runtime.
데이터 및 메모리를 암호화하기 위한 액세스 권한을 지정합니다.
이 열거형은 멤버 값의 비트 조합을 지원합니다.
public enum class DataProtectionPermissionFlags
[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 DataProtectionPermissionFlags
[System.Flags]
[System.Serializable]
public enum DataProtectionPermissionFlags
[System.Flags]
public enum DataProtectionPermissionFlags
[<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 DataProtectionPermissionFlags =
[<System.Flags>]
[<System.Serializable>]
type DataProtectionPermissionFlags =
[<System.Flags>]
type DataProtectionPermissionFlags =
Public Enum DataProtectionPermissionFlags
- 상속
- 특성
필드
| Name | 값 | Description |
|---|---|---|
| NoFlags | 0 | 보호 능력이 없습니다. |
| ProtectData | 1 | 데이터를 암호화하는 기능입니다. |
| UnprotectData | 2 | 데이터를 암호화 해제하는 기능입니다. |
| ProtectMemory | 4 | 메모리를 암호화하는 기능입니다. |
| UnprotectMemory | 8 | 메모리를 암호화 해제하는 기능입니다. |
| AllFlags | 15 | 데이터를 암호화하고, 메모리를 암호화하고, 데이터를 암호화하지 않고, 암호화되지 않은 메모리를 사용할 수 있습니다. |
설명
Caution
CAS(코드 액세스 보안)는 모든 버전의 .NET Framework 및 .NET에서 더 이상 사용되지 않습니다. 최신 버전의 .NET은 CAS 주석을 준수하지 않으며 CAS 관련 API를 사용하는 경우 오류가 발생합니다. 개발자는 보안 작업을 수행하는 다른 방법을 찾아야 합니다.
이 열거형은 DataProtectionPermission, DataProtectionPermissionAttribute 클래스가 ProtectedData, ProtectedMemory 클래스를 사용하여 암호화된 데이터와 메모리 액세스를 보호하는 데 사용됩니다.
Caution
이러한 플래그의 대부분은 강력한 효과를 가질 수 있으며 신뢰할 수 있는 코드에만 부여되어야 합니다.