Edit

PermissionRequestEvidence Class

Definition

Caution

This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.

Defines evidence that represents permission requests. This class cannot be inherited.

public ref class PermissionRequestEvidence sealed : System::Security::Policy::EvidenceBase
[System.Obsolete("This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[<System.Obsolete("This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type PermissionRequestEvidence = class
    inherit EvidenceBase
type PermissionRequestEvidence = class
    inherit EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
Inherits EvidenceBase
Inheritance
PermissionRequestEvidence
Attributes

Remarks

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.

Permission requests include the minimum permissions the code requires to run, permissions the code can use if they are granted, but are not required, and permissions the code explicitly asks not to be granted.

Constructors

Name Description
PermissionRequestEvidence(PermissionSet, PermissionSet, PermissionSet)

Initializes a new instance of the PermissionRequestEvidence class with the permission request of a code assembly.

Properties

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.

Methods

Name Description
Clone()

Creates a new object that is a complete copy of the current instance.

(Inherited from EvidenceBase)
Copy()

Creates an equivalent copy of the current PermissionRequestEvidence.

ToString()

Gets a string representation of the state of the PermissionRequestEvidence.

Applies to