共用方式為


HostSecurityManager.ResolvePolicy(Evidence) 方法

定義

警告

此 API 現已淘汰。

根據指定的辨識項,判斷授與程式碼的權限。

public:
 virtual System::Security::PermissionSet ^ ResolvePolicy(System::Security::Policy::Evidence ^ evidence);
[System.Obsolete]
public virtual System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
public virtual System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
[<System.Obsolete>]
abstract member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
override this.ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
abstract member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
override this.ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
Public Overridable Function ResolvePolicy (evidence As Evidence) As PermissionSet

參數

evidence
Evidence

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

傳回

可由安全性系統授與的使用權限集合。

屬性

例外狀況

evidencenull

備註

此方法會叫用安全策略引擎,並提供指定的辨識項。 結果是由安全策略所決定。

適用於