Context<TActivity>.Quote 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.
Overloads
| Name | Description |
|---|---|
| Quote(String, MessageActivity, CancellationToken) |
Obsolete.
Send a message to the conversation with a quoted message reference prepended to the text. Teams renders the quoted message as a preview bubble above the response text. |
| Quote(String, String, CancellationToken) |
Obsolete.
Send a message to the conversation with a quoted message reference prepended to the text. Teams renders the quoted message as a preview bubble above the response text. |
Quote(String, MessageActivity, CancellationToken)
Caution
Use QuoteAsync with a TeamsActivityInput built via new MessageActivityInput() instead.
Send a message to the conversation with a quoted message reference prepended to the text. Teams renders the quoted message as a preview bubble above the response text.
[System.Obsolete("Use QuoteAsync with a TeamsActivityInput built via new MessageActivityInput() instead.")]
public System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse?> Quote(string messageId, Microsoft.Teams.Apps.MessageActivity activity, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Use QuoteAsync with a TeamsActivityInput built via new MessageActivityInput() instead.")>]
member this.Quote : string * Microsoft.Teams.Apps.MessageActivity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse>
Public Function Quote (messageId As String, activity As MessageActivity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SendActivityResponse)
Parameters
- messageId
- String
The ID of the message to quote.
- activity
- MessageActivity
The activity to send. For MessageActivity, a quote placeholder for messageId is prepended to its text. Other activity types are sent as-is without quoting.
- cancellationToken
- CancellationToken
Optional cancellation token.
Returns
The response from sending the activity.
- Attributes
Applies to
Quote(String, String, CancellationToken)
Caution
Use QuoteAsync instead.
Send a message to the conversation with a quoted message reference prepended to the text. Teams renders the quoted message as a preview bubble above the response text.
[System.Obsolete("Use QuoteAsync instead.")]
public System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse?> Quote(string messageId, string text, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Use QuoteAsync instead.")>]
member this.Quote : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse>
Public Function Quote (messageId As String, text As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SendActivityResponse)
Parameters
- messageId
- String
The ID of the message to quote.
- text
- String
The response text, appended to the quoted message placeholder.
- cancellationToken
- CancellationToken
Optional cancellation token.
Returns
The response from sending the activity.
- Attributes