NWTcpConnectionAuthenticationDelegate_Extensions.EvaluateTrustAsync 方法

定义

由开发人员实现时,返回一个替代默认信任评估的任务。

public static System.Threading.Tasks.Task<Security.SecTrust> EvaluateTrustAsync (this NetworkExtension.INWTcpConnectionAuthenticationDelegate This, NetworkExtension.NWTcpConnection connection, Foundation.NSArray peerCertificateChain);
static member EvaluateTrustAsync : NetworkExtension.INWTcpConnectionAuthenticationDelegate * NetworkExtension.NWTcpConnection * Foundation.NSArray -> System.Threading.Tasks.Task<Security.SecTrust>

参数

This
INWTcpConnectionAuthenticationDelegate

此扩展方法在其上运行的实例。

connection
NWTcpConnection
peerCertificateChain
NSArray

返回

适用于