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 类派生的证据。 它不返回派生自其他类的旧证据对象。

适用于