SwiftError Struct-datatyp

Definition

Viktigt!

Detta API uppfyller inte CLS.

Representerar Swift-felkontexten som anger att argumentet är felkontexten.

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

Exempel

Här är ett exempel på hur en SwiftError kan deklareras:

[UnmanagedCallConv(CallConvs = [typeof(CallConvSwift)])]
[DllImport("SwiftLibrary", EntryPoint = "export")]
public static extern void swiftFunction(SwiftError* error);

Kommentarer

Den här structen används för att hämta felkontexten från Swift-funktioner i samband med interop med .NET.

Konstruktorer

Name Description
SwiftError(Void*)

Skapar en ny instans av SwiftError-structen med det angivna pekarvärdet.

Egenskaper

Name Description
Value

Hämtar pekaren för felkontexten.

Gäller för