TeamsActivity.FromActivity(CoreActivity) 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.
Creates a new instance of the TeamsActivity class from the specified Activity object.
public static Microsoft.Teams.Apps.Schema.TeamsActivity FromActivity(Microsoft.Teams.Core.Schema.CoreActivity activity);
static member FromActivity : Microsoft.Teams.Core.Schema.CoreActivity -> Microsoft.Teams.Apps.Schema.TeamsActivity
Public Shared Function FromActivity (activity As CoreActivity) As TeamsActivity
Parameters
- activity
- CoreActivity
The Activity instance to convert. Cannot be null.
Returns
A TeamsActivity object that represents the specified Activity.