PermissionRequestEvidence 類別

定義

警告

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

警告

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

警告

Code Access Security is not supported or honored by the runtime.

警告

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 ref class PermissionRequestEvidence sealed : System::Security::Policy::EvidenceBase
public ref class PermissionRequestEvidence sealed
[System.Obsolete("This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
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.")]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[System.Obsolete("Code Access Security is not supported or honored by the runtime.")]
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
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class PermissionRequestEvidence : System.Security.Policy.EvidenceBase
[<System.Obsolete("This type is obsolete. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type PermissionRequestEvidence = class
    inherit EvidenceBase
[<System.Obsolete("This type is obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
type PermissionRequestEvidence = class
    inherit EvidenceBase
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.")>]
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
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type PermissionRequestEvidence = class
    inherit EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
Inherits EvidenceBase
Public NotInheritable Class PermissionRequestEvidence
繼承
PermissionRequestEvidence
繼承
PermissionRequestEvidence
屬性

備註

警告

程式碼存取安全性 (CAS) 在所有版本的 .NET Framework 和 .NET 中已被取代。 使用 CAS 相關 API 時,最新版本的 .NET 不會接受 CAS 批註,並產生錯誤。 開發人員應該尋求替代方式來完成安全性工作。

許可權要求包括程式碼執行所需的最低許可權、程式碼在授與時可以使用的許可權,但並非必要許可權,以及程式碼明確要求未授與的許可權。

建構函式

PermissionRequestEvidence(PermissionSet, PermissionSet, PermissionSet)
已淘汰.
已淘汰.
已淘汰.
已淘汰.

使用程式碼組件的使用權限要求,初始化 PermissionRequestEvidence 類別的新執行個體。

屬性

DeniedPermissions
已淘汰.
已淘汰.
已淘汰.
已淘汰.

取得程式碼明確要求不要授權的使用權限。

OptionalPermissions
已淘汰.
已淘汰.
已淘汰.
已淘汰.

取得程式碼可以在使用權限授權時所使用的非必要使用權限。

RequestedPermissions
已淘汰.
已淘汰.
已淘汰.
已淘汰.

取得程式碼要求執行的最小使用權限。

方法

Clone()
已淘汰.
已淘汰.
已淘汰.
已淘汰.

建立目前執行個體複本的新物件。

Clone()
已淘汰.
已淘汰.
已淘汰.
已淘汰.

建立新物件,該物件是目前執行個體的完整複本。

(繼承來源 EvidenceBase)
Copy()
已淘汰.
已淘汰.
已淘汰.
已淘汰.

建立目前 PermissionRequestEvidence 的對等複本。

Equals(Object)
已淘汰.
已淘汰.
已淘汰.
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.
已淘汰.
已淘汰.
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.
已淘汰.
已淘汰.
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.
已淘汰.
已淘汰.
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.
已淘汰.
已淘汰.
已淘汰.

取得 PermissionRequestEvidence 狀態的字串表示。

適用於