Evidence.AddHostEvidence<T>(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds host evidence of the specified type to the host evidence collection.
public:
generic <typename T>
where T : System::Security::Policy::EvidenceBase void AddHostEvidence(T evidence);
public void AddHostEvidence<T> (T evidence) where T : System.Security.Policy.EvidenceBase;
[System.Runtime.InteropServices.ComVisible(false)]
public void AddHostEvidence<T> (T evidence) where T : System.Security.Policy.EvidenceBase;
member this.AddHostEvidence : 'T -> unit (requires 'T :> System.Security.Policy.EvidenceBase)
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.AddHostEvidence : 'T -> unit (requires 'T :> System.Security.Policy.EvidenceBase)
Public Sub AddHostEvidence(Of T As EvidenceBase) (evidence As T)
Type Parameters
- T
The type of the object in evidence
.
Parameters
- evidence
- T
The host evidence to add.
- Attributes
Exceptions
evidence
is null
.
Evidence of type T
is already in the list.
Remarks
Legacy evidence, that is, evidence that is not derived from EvidenceBase, cannot be added. Only evidence that is derived from EvidenceBase can be added. This method does not allow you to add evidence if evidence of that type already exists in the assembly list.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기