共用方式為


Evidence.GetHostEvidence<T> 方法

定義

取得集合中指定之型別的主辨識項。

public:
generic <typename T>
 where T : System::Security::Policy::EvidenceBase T GetHostEvidence();
public T GetHostEvidence<T> () where T : System.Security.Policy.EvidenceBase;
public T? GetHostEvidence<T> () where T : System.Security.Policy.EvidenceBase;
[System.Runtime.InteropServices.ComVisible(false)]
public T GetHostEvidence<T> () where T : System.Security.Policy.EvidenceBase;
member this.GetHostEvidence : unit -> 'T (requires 'T :> System.Security.Policy.EvidenceBase)
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.GetHostEvidence : unit -> 'T (requires 'T :> System.Security.Policy.EvidenceBase)
Public Function GetHostEvidence(Of T As EvidenceBase) () As T

類型參數

T

要取得的辨識項型別。

傳回

T

主辨識項集合中型別 T 的辨識項。

屬性

備註

這個方法只會傳回衍生自 類別的 EvidenceBase 辨識項。 它不會傳回衍生自其他類別的舊版辨識項物件。

適用於