MessageActivityExtensions.WithChannelId(MessageActivity, String) 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.
Caution
MessageActivity is an inbound (received) activity. To construct and send a message, use new MessageActivityInput() instead.
Sets the channel id.
[System.Obsolete("MessageActivity is an inbound (received) activity. To construct and send a message, use new MessageActivityInput() instead.")]
public static Microsoft.Teams.Apps.MessageActivity WithChannelId(this Microsoft.Teams.Apps.MessageActivity message, string? value);
[<System.Obsolete("MessageActivity is an inbound (received) activity. To construct and send a message, use new MessageActivityInput() instead.")>]
static member WithChannelId : Microsoft.Teams.Apps.MessageActivity * string -> Microsoft.Teams.Apps.MessageActivity
<Extension()>
Public Function WithChannelId (message As MessageActivity, value As String) As MessageActivity
Parameters
- message
- MessageActivity
- value
- String
Returns
- Attributes