共用方式為


Evidence.GetAssemblyEvidence<T> 方法

定義

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

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

類型參數

T

要取得的辨識項型別。

傳回

T

組件辨識項集合中型別 T 的辨識項。

屬性

備註

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

適用於