System.Security.Cryptography.MemoryProtectionScope Enumeration

Specifies the scope of memory protection to be applied by the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) method.

Syntax

public enum MemoryProtectionScope

Remarks

This enumeration is used with the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) and ProtectedMemory.Unprotect(Byte[], MemoryProtectionScope) methods to protect data in memory.

Members

Member NameDescription
CrossProcess

All code in any process can unprotect memory that was protected using the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) method.

SameLogon

Only code running in the same user context as the code that called the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) method can unprotect memory.

SameProcess

Only code running in the same process as the code that called the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) method can unprotect memory.

Requirements

Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0