UITestTraceUtility.StartTracing Method (String, String)
Returns a trace listener stream for tracing that saves log files in the specified folder.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
Syntax
'Declaration
Public Shared Function StartTracing ( _
baseDirectory As String, _
dirName As String _
) As TextWriterTraceListener
public static TextWriterTraceListener StartTracing(
string baseDirectory,
string dirName
)
public:
static TextWriterTraceListener^ StartTracing(
String^ baseDirectory,
String^ dirName
)
static member StartTracing :
baseDirectory:string *
dirName:string -> TextWriterTraceListener
public static function StartTracing(
baseDirectory : String,
dirName : String
) : TextWriterTraceListener
Parameters
baseDirectory
Type: StringThe base folder for the trace files.
dirName
Type: StringName of the folder to create and use to save log files in the baseDirectory.
Return Value
Type: TextWriterTraceListener
A trace listener stream.
Remarks
If no value is provided in the dirName parameter, log files are saved in the baseDirectory folder. If no value is provided in the baseDirectory folder, log files are saved in the TEMP folder.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.