Share via


LoadTestUserContext.InitializeTestContext Property

Gets or sets the state of the user context at the time InitializeTest was completed for the virtual user that is associated with the LoadTestUserContext object.

Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntax

'Declaration
Public ReadOnly Property InitializeTestContext As IDictionary(Of String, Object)
public IDictionary<string, Object> InitializeTestContext { get; }
public:
property IDictionary<String^, Object^>^ InitializeTestContext {
    IDictionary<String^, Object^>^ get ();
}
member InitializeTestContext : IDictionary<string, Object> with get
function get InitializeTestContext () : IDictionary<String, Object>

Property Value

Type: IDictionary<String, Object>

Remarks

If the load test scenario specifies an InitializeTest, the InitialzeTestContext property contains the contents of the property collection of the TestContext or WebTestContext object at the time the InitializeTest completed.

.NET Framework Security

See Also

Reference

LoadTestUserContext Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace