Language

SFCertificateTrustPanel.RunModal(SecTrust, String) Method

Definition

Displays the panel modally for the specified SecTrust object with a descriptive message.

[Foundation.Export("runModalForTrust:message:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual AppKit.NSModalResponse RunModal(Security.SecTrust trust, string? message);
[<Foundation.Export("runModalForTrust:message:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
override this.RunModal : Security.SecTrust * string -> AppKit.NSModalResponse

Parameters

trust
SecTrust

The SecTrust object to evaluate.

message
String

A message to display in the panel, or null.

Returns

The button code that was pressed to dismiss the panel.

Attributes

Applies to