ITeamsInfo.GetTeamsMemberAsync 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 System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.TeamsChannelAccount> GetTeamsMemberAsync (Microsoft.Bot.Builder.ITurnContext context, string userId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTeamsMemberAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.TeamsChannelAccount>
Public Function GetTeamsMemberAsync (context As ITurnContext, userId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TeamsChannelAccount)
Parameters
- context
- ITurnContext
Turn context.
- userId
- String
ID of the user in question.
- cancellationToken
- CancellationToken
cancellation token.
Returns
Team Account Details.