IConversationReferenceStore.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Add a conversation reference to the store. If overwrite, update the existing one, otherwise add when not exist.
public System.Threading.Tasks.Task<bool> Add (string key, Microsoft.Bot.Schema.ConversationReference reference, Microsoft.TeamsFx.Conversation.ConversationReferenceStoreAddOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member Add : string * Microsoft.Bot.Schema.ConversationReference * Microsoft.TeamsFx.Conversation.ConversationReferenceStoreAddOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function Add (key As String, reference As ConversationReference, options As ConversationReferenceStoreAddOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)
Parameters
- key
- String
The target key.
- reference
- ConversationReference
The conversation reference to be added.
The options to add the conversation reference.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
true if added or updated, false if not changed.