共用方式為


NWTcpConnectionAuthenticationDelegate.EvaluateTrust 方法

定義

由開發人員實作時,會覆寫預設信任評估,並在作業完成時執行完成處理常式。

[Foundation.Export("evaluateTrustForConnection:peerCertificateChain:completionHandler:")]
public virtual void EvaluateTrust (NetworkExtension.NWTcpConnection connection, Foundation.NSArray peerCertificateChain, Action<Security.SecTrust> completion);
abstract member EvaluateTrust : NetworkExtension.NWTcpConnection * Foundation.NSArray * Action<Security.SecTrust> -> unit
override this.EvaluateTrust : NetworkExtension.NWTcpConnection * Foundation.NSArray * Action<Security.SecTrust> -> unit

參數

connection
NWTcpConnection
peerCertificateChain
NSArray
completion
Action<SecTrust>
屬性

適用於