CoreActivityInput.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 an outbound CoreActivityInput from a full (inbound-shaped) CoreActivity. Copies the activity type, id, recipient, and content (extension properties). Transport routing (conversation, service url) and the sender (from) are supplied explicitly to the API clients and are not carried through this conversion.
public static Microsoft.Teams.Core.Schema.CoreActivityInput FromActivity(Microsoft.Teams.Core.Schema.CoreActivity activity);
static member FromActivity : Microsoft.Teams.Core.Schema.CoreActivity -> Microsoft.Teams.Core.Schema.CoreActivityInput
Public Shared Function FromActivity (activity As CoreActivity) As CoreActivityInput
Parameters
- activity
- CoreActivity
The source activity. Cannot be null.
Returns
A new CoreActivityInput carrying the activity's serializable content.