TeamsInfo.GetMemberAsync(ITurnContext, String, CancellationToken) 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.
Gets the account of a single conversation member. This works in one-on-one, group, and teams scoped conversations.
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.TeamsChannelAccount> GetMemberAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string userId, System.Threading.CancellationToken cancellationToken = default);
static member GetMemberAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.TeamsChannelAccount>
Public Shared Function GetMemberAsync (turnContext As ITurnContext, userId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TeamsChannelAccount)
Parameters
- turnContext
- ITurnContext
Turn context.
- userId
- String
ID of the user in question.
- cancellationToken
- CancellationToken
cancellation token.
Returns
Team Details.