Language

MessageActivityInput.WithText Method

Definition

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

Returns

Applies to