Caution
Code Access Security is not supported or honored by the runtime.
Specifies categories of functionality potentially harmful to the host if invoked by a method or class.
This enumeration supports a bitwise combination of its member values.
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
Exposes no host resources.
Synchronization 1Exposes synchronization.
2Exposes state that might be shared between threads.
ExternalProcessMgmt 4Might create or destroy other processes.
SelfAffectingProcessMgmt 8Might exit the current process, terminating the server.
ExternalThreading 16Creates or manipulates threads other than its own, which might be harmful to the host.
SelfAffectingThreading 32Manipulates threads in a way that only affects user code.
SecurityInfrastructure 64Exposes the security infrastructure.
UI 128Exposes the user interface.
MayLeakOnAbort 256Might cause a resource leak on termination, if not protected by a safe handle or some other means of ensuring the release of resources.
All 511Exposes all host resources.
Caution
Code Access Security (CAS) has been deprecated across all versions of .NET Framework and .NET. Recent versions of .NET do not honor CAS annotations and produce errors if CAS-related APIs are used. Developers should seek alternative means of accomplishing security tasks.
This enumeration is used by the HostProtectionAttribute attribute.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4