Table of Contents

Method GetTextAsync

Namespace
LMKit.Data
Assembly
LM-Kit.NET.dll

GetTextAsync(CancellationToken)

Asynchronously extracts and returns the textual content from the attachment.

public Task<string> GetTextAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<string>

A task that represents the asynchronous operation. The task result contains a string with the attachment's text, or an empty string if no text could be extracted.