PermissionRequestEvidence Class
.NET Framework 4.5
Note: This API is now obsolete.
Defines evidence that represents permission requests. This class cannot be inherited.
Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
[SerializableAttribute] [ComVisibleAttribute(true)] [ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] public sealed class PermissionRequestEvidence : EvidenceBase
The PermissionRequestEvidence type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | PermissionRequestEvidence | Initializes a new instance of the PermissionRequestEvidence class with the permission request of a code assembly. |
| Name | Description | |
|---|---|---|
![]() | DeniedPermissions | Gets the permissions the code explicitly asks not to be granted. |
![]() | OptionalPermissions | Gets the permissions the code can use if they are granted, but are not required. |
![]() | RequestedPermissions | Gets the minimum permissions the code requires to run. |
| Name | Description | |
|---|---|---|
![]() | Clone | Creates a new object that is a copy of the current instance. (Overrides EvidenceBase.Clone().) |
![]() | Copy | Creates an equivalent copy of the current PermissionRequestEvidence. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Gets a string representation of the state of the PermissionRequestEvidence. (Overrides Object.ToString().) |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
