SwiftError Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |