CoreActivity Constructors
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.
Overloads
| Name | Description |
|---|---|
| CoreActivity(CoreActivity) |
Creates a new instance of the CoreActivity class by copying properties from another activity. |
| CoreActivity(String) |
Creates a new instance of the CoreActivity class with the specified activity type. Defaults to Message. |
CoreActivity(CoreActivity)
Creates a new instance of the CoreActivity class by copying properties from another activity.
protected CoreActivity(Microsoft.Teams.Core.Schema.CoreActivity activity);
new Microsoft.Teams.Core.Schema.CoreActivity : Microsoft.Teams.Core.Schema.CoreActivity -> Microsoft.Teams.Core.Schema.CoreActivity
Protected Sub New (activity As CoreActivity)
Parameters
- activity
- CoreActivity
The source activity to copy from.
Applies to
CoreActivity(String)
Creates a new instance of the CoreActivity class with the specified activity type. Defaults to Message.
[System.Text.Json.Serialization.JsonConstructor]
public CoreActivity(string type = "message");
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.Teams.Core.Schema.CoreActivity : string -> Microsoft.Teams.Core.Schema.CoreActivity
Public Sub New (Optional type As String = "message")
Parameters
- type
- String
The activity type. Defaults to "message".
- Attributes