Freigeben über


SharePointActivityHandler.OnSharePointTaskGetCardViewAsync Methode

Definition

Überschreiben Sie dies in einer abgeleiteten Klasse, um Logik für den Abruf einer Kartenansicht bereitzustellen.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.SharePoint.CardViewResponse> OnSharePointTaskGetCardViewAsync(Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.SharePoint.AceRequest aceRequest, System.Threading.CancellationToken cancellationToken);
abstract member OnSharePointTaskGetCardViewAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.SharePoint.AceRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.SharePoint.CardViewResponse>
override this.OnSharePointTaskGetCardViewAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.SharePoint.AceRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.SharePoint.CardViewResponse>
Protected Overridable Function OnSharePointTaskGetCardViewAsync (turnContext As ITurnContext(Of IInvokeActivity), aceRequest As AceRequest, cancellationToken As CancellationToken) As Task(Of CardViewResponse)

Parameter

turnContext
ITurnContext<IInvokeActivity>

Ein stark typiertes Kontextobjekt für diese Drehung.

aceRequest
AceRequest

Die ACE ruft die Nutzlast des Anforderungswerts auf.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Eine Kartenansichtsantwort für die Anforderung.

Gilt für: