Lingua

DCDevice.GenerateTokenAsync Metodo

Definizione

Genera un token di identificazione per CurrentDevice e richiama un gestore al termine dell'operazione.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Foundation.NSData> GenerateTokenAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GenerateTokenAsync : unit -> System.Threading.Tasks.Task<Foundation.NSData>
override this.GenerateTokenAsync : unit -> System.Threading.Tasks.Task<Foundation.NSData>

Valori restituiti

Attività che rappresenta l'operazione GenerateToken asincrona. Il valore del parametro TResult è DeviceCheck.DCDeviceGenerateTokenCompletionHandler.

Attributi

Commenti

Il metodo GenerateTokenAsync può essere usato con C# asincrono restituendo il controllo al chiamante con un'attività che rappresenta l'operazione.

Si applica a