SwiftError Struct
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
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);
Swift |
Creates a new instance of the SwiftError struct with the specified pointer value. |
Value |
Gets the pointer of the error context. |
Product | Versions |
---|---|
.NET | 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: