Share via


INotificationTargetStorage.Read(String, CancellationToken) Method

Definition

Read one notification target by its key.

public System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationReference> Read (string key, System.Threading.CancellationToken cancellationToken = default);
abstract member Read : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationReference>
Public Function Read (key As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConversationReference)

Parameters

key
String

The target key

cancellationToken
CancellationToken

The cancellation token.

Returns

The target, or null if not found.

Applies to