NWUdpSession.WriteDatagramAsync(NSData) Method

Definition

Writes the provided datagram to the endpoint, and runs a completion handler when the operation completes.

public virtual System.Threading.Tasks.Task WriteDatagramAsync (Foundation.NSData datagram);
abstract member WriteDatagramAsync : Foundation.NSData -> System.Threading.Tasks.Task
override this.WriteDatagramAsync : Foundation.NSData -> System.Threading.Tasks.Task

Parameters

datagram
NSData

Returns

A task that represents the asynchronous WriteDatagram operation

Remarks

The WriteDatagramAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to