Evidence.GetHostEvidence Evidence.GetHostEvidence Evidence.GetHostEvidence Evidence.GetHostEvidence Method

定義

指定した型のホスト証拠をコレクションから取得します。Gets host evidence of the specified type from the collection.

public:
generic <typename T>
 where T : System::Security::Policy::EvidenceBase T GetHostEvidence();
[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)
Public Function GetHostEvidence(Of T As EvidenceBase) () As T

型パラメーター

T

取得する証拠の型。The type of the evidence to get.

戻り値

T T T T

ホスト証拠コレクション内の T 型の証拠。Evidence of type T in the host evidence collection.

注釈

このメソッドから派生した証拠のみを返します、EvidenceBaseクラス。This method returns only evidence that is derived from the EvidenceBase class. その他のクラスから派生した従来の証拠オブジェクトは返されません。It does not return legacy evidence objects that are derived from other classes.

適用対象