using System; using System.Runtime.InteropServices; namespace System.Security.Permissions { /// Specifies categories of functionality potentially harmful to the host if invoked by a method or class. // Token: 0x0200054B RID: 1355 [ComVisible(true)] [Flags] [Serializable] public enum HostProtectionResource { /// Exposes no host resources. // Token: 0x0400143E RID: 5182 None = 0, /// Exposes synchronization. // Token: 0x0400143F RID: 5183 Synchronization = 1, /// Exposes state that might be shared between threads. // Token: 0x04001440 RID: 5184 SharedState = 2, /// Might create or destroy other processes. // Token: 0x04001441 RID: 5185 ExternalProcessMgmt = 4, /// Might exit the current process, terminating the server. // Token: 0x04001442 RID: 5186 SelfAffectingProcessMgmt = 8, /// Creates or manipulates threads other than its own, which might be harmful to the host. // Token: 0x04001443 RID: 5187 ExternalThreading = 16, /// Manipulates threads in a way that only affects user code. // Token: 0x04001444 RID: 5188 SelfAffectingThreading = 32, /// Exposes the security infrastructure. // Token: 0x04001445 RID: 5189 SecurityInfrastructure = 64, /// Exposes the user interface. // Token: 0x04001446 RID: 5190 UI = 128, /// Might cause a resource leak on termination, if not protected by a safe handle or some other means of ensuring the release of resources. // Token: 0x04001447 RID: 5191 MayLeakOnAbort = 256, /// Exposes all host resources. // Token: 0x04001448 RID: 5192 All = 511 } }