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. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor