MessageActivityInput.WithText 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 |
|---|---|
| WithText(String) |
Sets the text content (and optional default plain text format) of the message. |
| WithText(String, TextFormat) |
Sets the text content and format of the message. |
WithText(String)
Sets the text content (and optional default plain text format) of the message.
public Microsoft.Teams.Apps.MessageActivityInput WithText(string text);
member this.WithText : string -> Microsoft.Teams.Apps.MessageActivityInput
Public Function WithText (text As String) As MessageActivityInput
Parameters
- text
- String
Returns
Applies to
WithText(String, TextFormat)
Sets the text content and format of the message.
public Microsoft.Teams.Apps.MessageActivityInput WithText(string text, Microsoft.Teams.Apps.TextFormat textFormat);
member this.WithText : string * Microsoft.Teams.Apps.TextFormat -> Microsoft.Teams.Apps.MessageActivityInput
Public Function WithText (text As String, textFormat As TextFormat) As MessageActivityInput
Parameters
- text
- String
- textFormat
- TextFormat