Activity.SetTrace Method (String, String, String, String)

Applies To: Windows 8.1

Sets Trace settings of the Activity.

Namespace: Microsoft.Assessments.Runtime
Assembly: Microsoft.Assessments.Core (in Microsoft.Assessments.Core.dll)


Dim instance As Activity
Dim traceFile As String
Dim traceLink As String
Dim traceDescriptionName As String
Dim traceDescriptionTooltip As String
Dim returnValue As Trace

returnValue = instance.SetTrace(traceFile, traceLink, traceDescriptionName, traceDescriptionTooltip)


Public Function SetTrace ( _
    traceFile As String, _
    traceLink As String, _
    traceDescriptionName As String, _
    traceDescriptionTooltip As String _
) As Trace
public Trace SetTrace (
    string traceFile,
    string traceLink,
    string traceDescriptionName,
    string traceDescriptionTooltip
Trace^ SetTrace (
    String^ traceFile, 
    String^ traceLink, 
    String^ traceDescriptionName, 
    String^ traceDescriptionTooltip
public Trace SetTrace (
    String traceFile, 
    String traceLink, 
    String traceDescriptionName, 
    String traceDescriptionTooltip
public function SetTrace (
    traceFile : String, 
    traceLink : String, 
    traceDescriptionName : String, 
    traceDescriptionTooltip : String
) : Trace


  • traceFile
    The trace file name. The trace file name is the value of element Activity/Trace/File.
  • traceLink
    The trace link. The trace link is the value of element Activity/Trace/Link.
  • traceDescriptionName
    The trace name. The trace name is the value of element Activity/Trace/Description/Name.
  • traceDescriptionTooltip
    The trace tool tip. The trace tool tip is the value of element Activity/Trace/Description/ToolTip.

Return Value

Returns Trace.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Development Platforms

Windows 8.1

See Also


Activity Class
Activity Members
Microsoft.Assessments.Runtime Namespace