microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
next/core

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Cards/Actions/InvokeAction.cs

25lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using Microsoft.Teams.Common;
5
6namespace Microsoft.Teams.Cards;
7
8/// <summary>
9/// This class is deprecated. Please use <see cref="InvokeSubmitActionData"/> instead. This will be removed in a future version of the SDK.
10/// </summary>
11[Obsolete("This class is deprecated. Use InvokeSubmitActionData instead. This will be removed in a future version of the SDK.")]
12public class InvokeAction : SubmitAction
13{
14 /// <summary>
15 /// Initializes a new instance of the <see cref="InvokeAction"/> class.
16 /// </summary>
17 /// <param name="value">The value to submit when the action is invoked.</param>
18 public InvokeAction(object value)
19 {
20 Data = new Union<string, SubmitActionData>(new SubmitActionData
21 {
22 Msteams = new InvokeSubmitActionData(new Union<object, CollabStageInvokeDataValue>(value))
23 });
24 }
25}