共用方式為


SecurityManager.ResolveSystemPolicy(Evidence) 方法

定義

警告

此 API 現已淘汰。

警告

This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

根據指定的辨識項,判斷要授與程式碼何種權限,但不包括 AppDomain 層級的原則。

public:
 static System::Security::PermissionSet ^ ResolveSystemPolicy(System::Security::Policy::Evidence ^ evidence);
[System.Obsolete]
public static System.Security.PermissionSet ResolveSystemPolicy (System.Security.Policy.Evidence evidence);
public static System.Security.PermissionSet ResolveSystemPolicy (System.Security.Policy.Evidence evidence);
[System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public static System.Security.PermissionSet ResolveSystemPolicy (System.Security.Policy.Evidence evidence);
[<System.Obsolete>]
static member ResolveSystemPolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
static member ResolveSystemPolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
[<System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
static member ResolveSystemPolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
Public Shared Function ResolveSystemPolicy (evidence As Evidence) As PermissionSet

參數

evidence
Evidence

用來評估原則的辨識項集合。

傳回

PermissionSet

可由安全性系統授與的一組權限。

屬性

例外狀況

此方法使用程式碼存取安全性 (CAS) 原則,.NET Framework 4 已過時。 若要啟用 CAS 原則對舊版 .NET Framework 的相容性,請使用 <legacyCasPolicy> 項目

備註

這個方法會叫用安全性原則引擎,並提供呼叫程式碼身分識別的辨識項。 結果取決於系統安全性原則專屬於任何 AppDomain 原則。

適用於