Uređivanje

Dijeli putem


PermissionRequestEvidence Class

Definition

Caution

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

Caution

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.

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

public ref class PermissionRequestEvidence sealed : System::Security::Policy::EvidenceBase
public ref class PermissionRequestEvidence sealed
[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
[System.Serializable]
public sealed class PermissionRequestEvidence
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class PermissionRequestEvidence
[System.Serializable]
[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.")]
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
[<System.Serializable>]
type PermissionRequestEvidence = class
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type PermissionRequestEvidence = class
[<System.Serializable>]
[<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.")>]
type PermissionRequestEvidence = class
    inherit EvidenceBase
type PermissionRequestEvidence = class
    inherit EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
Inherits EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
Inheritance
PermissionRequestEvidence
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

PermissionRequestEvidence(PermissionSet, PermissionSet, PermissionSet)

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

Properties

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

Clone()

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

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.

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Gets a string representation of the state of the PermissionRequestEvidence.

Applies to