Edit

Share via


SecTrust.Evaluate Method

Definition

Overloads

Evaluate()

Evaluate the trust of the certificate using the policy.

Evaluate(NSError)

Evaluate()

Evaluate the trust of the certificate using the policy.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 12, 1, ObjCRuntime.PlatformArchitecture.None, "Use 'SecTrust.Evaluate (out NSError)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.TvOS, 12, 1, ObjCRuntime.PlatformArchitecture.None, "Use 'SecTrust.Evaluate (out NSError)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 5, 1, ObjCRuntime.PlatformArchitecture.None, "Use 'SecTrust.Evaluate (out NSError)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 14, 1, ObjCRuntime.PlatformArchitecture.None, "Use 'SecTrust.Evaluate (out NSError)' instead.")]
public Security.SecTrustResult Evaluate ();
member this.Evaluate : unit -> Security.SecTrustResult

Returns

A code that describe if the certificate can be trusted and, if so, under which circumstances.

Attributes

Remarks

In general both Proceed and Unspecified means you can trust the certificate, other values means it should not be trusted.

Applies to

Evaluate(NSError)

[ObjCRuntime.TV(12, 0)]
[ObjCRuntime.Watch(5, 0)]
public bool Evaluate (out Foundation.NSError error);
member this.Evaluate :  -> bool

Parameters

error
NSError

Returns

Attributes

Applies to