Share via


Activity.CreateTrace(String, Object, String, String) Method

Definition

Creates a new trace activity based on this activity.

public Microsoft.Bot.Schema.ITraceActivity CreateTrace (string name, object value = default, string valueType = default, string label = default);
member this.CreateTrace : string * obj * string * string -> Microsoft.Bot.Schema.ITraceActivity
Public Function CreateTrace (name As String, Optional value As Object = Nothing, Optional valueType As String = Nothing, Optional label As String = Nothing) As ITraceActivity

Parameters

name
String

The name of the trace operation to create.

value
Object

Optional, the content for this trace operation.

valueType
String

Optional, identifier for the format of the value. Default is the name of type of the value.

label
String

Optional, a descriptive label for this trace operation.

Returns

The new trace activity.

Applies to