TeamsInfo.GetTeamMemberAsync 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 member of a teams scoped conversation.
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.TeamsChannelAccount> GetTeamMemberAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string userId, string teamId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetTeamMemberAsync : Microsoft.Bot.Builder.ITurnContext * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.TeamsChannelAccount>
Public Shared Function GetTeamMemberAsync (turnContext As ITurnContext, userId As String, Optional teamId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TeamsChannelAccount)
Parameters
- turnContext
- ITurnContext
Turn context.
- userId
- String
user id.
- teamId
- String
ID of the Teams team.
- cancellationToken
- CancellationToken
cancellation token.
Returns
Team Details.