Language

ConversationExtensions.ToThreadedConversationId(String, String) Method

Definition

Construct a threaded conversation ID by appending ;messageid={messageId} to the conversation ID. This is the format the Teams service uses to route messages to a specific thread in a channel.

public static string ToThreadedConversationId(string conversationId, string messageId);
static member ToThreadedConversationId : string * string -> string
Public Function ToThreadedConversationId (conversationId As String, messageId As String) As String

Parameters

conversationId
String

the conversation to thread into (e.g. 19:abc@thread.skype)

messageId
String

the thread root message ID (must be a non-zero numeric string)

Returns

the threaded conversation ID (e.g. 19:abc@thread.skype;messageid=123)

Applies to