Share via


TestContext.TestLogsDir Property

Gets the path to the test log directory. Deprecated. Use TestRunResultsDirectory instead.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property TestLogsDir As String
public virtual string TestLogsDir { get; }
public:
virtual property String^ TestLogsDir {
    String^ get ();
}
abstract TestLogsDir : string with get 
override TestLogsDir : string with get
function get TestLogsDir () : String

Property Value

Type: String
The path to the test log directory.

Exceptions

Exception Condition
InvalidCastException

An invalid value type is associated with the TestLogsDir property of the test context.

.NET Framework Security

See Also

Reference

TestContext Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Using the TestContext Class