IActivityExtensions.ToJson(IActivity) Method
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.
Converts an IActivity to a JSON string.
C#
public static string ToJson(this Microsoft.Agents.Protocols.Primitives.IActivity activity);
static member ToJson : Microsoft.Agents.Protocols.Primitives.IActivity -> string
<Extension()>
Public Function ToJson (activity As IActivity) As String
- activity
- IActivity
Activity to convert to Json Payload
JSON String
Producto | Versiones |
---|---|
Microsoft 365 Agents SDK .NET | 1 |