Table of Contents

Method ReadDeviceNameAsync

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

ReadDeviceNameAsync(CancellationToken)

Asynchronously reads the display name of the device.

public Task<string> ReadDeviceNameAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<string>

A task that represents the asynchronous read operation. The Result property contains the name of the device.