PermissionRequestEvidence PermissionRequestEvidence PermissionRequestEvidence PermissionRequestEvidence Class

Definition

Warning

This API is now obsolete.

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

public ref class PermissionRequestEvidence sealed : System::Security::Policy::EvidenceBase
[System.Runtime.InteropServices.ComVisible(true)]
[System.Obsolete("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.")]
[System.Obsolete("This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
[System.Serializable]
[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
type PermissionRequestEvidence = class
    inherit EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
Inherits EvidenceBase
Inheritance
PermissionRequestEvidencePermissionRequestEvidencePermissionRequestEvidencePermissionRequestEvidence
Attributes

Remarks

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

PermissionRequestEvidence(PermissionSet, PermissionSet, PermissionSet) PermissionRequestEvidence(PermissionSet, PermissionSet, PermissionSet) PermissionRequestEvidence(PermissionSet, PermissionSet, PermissionSet) PermissionRequestEvidence(PermissionSet, PermissionSet, PermissionSet)

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

Properties

DeniedPermissions DeniedPermissions DeniedPermissions DeniedPermissions

Gets the permissions the code explicitly asks not to be granted.

OptionalPermissions OptionalPermissions OptionalPermissions OptionalPermissions

Gets the permissions the code can use if they are granted, but are not required.

RequestedPermissions RequestedPermissions RequestedPermissions RequestedPermissions

Gets the minimum permissions the code requires to run.

Methods

Clone() Clone() Clone() Clone()

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

Copy() Copy() Copy() Copy()

Creates an equivalent copy of the current PermissionRequestEvidence.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Gets a string representation of the state of the PermissionRequestEvidence.

Applies to