संपादित करें

इसके माध्यम से साझा किया गया


SwiftError Struct

Definition

Important

This API is not CLS-compliant.

Represents the Swift error context, indicating that the argument is the error context.

public value class SwiftError
[System.CLSCompliant(false)]
public readonly struct SwiftError
[<System.CLSCompliant(false)>]
type SwiftError = struct
Public Structure SwiftError
Inheritance
SwiftError
Attributes

Remarks

This struct is used to retrieve the 'error' context from Swift functions in the context of interop with .NET.

Here's an example of how a SwiftError can be declared: [UnmanagedCallConv(CallConvs = [typeof(CallConvSwift)])] [DllImport("SwiftLibrary", EntryPoint = "export")] public static extern void swiftFunction(SwiftError* error);

Constructors

SwiftError(Void*)

Creates a new instance of the SwiftError struct with the specified pointer value.

Properties

Value

Gets the pointer of the error context.

Applies to