LoadTestLoadProfile.Validate Method

When overridden in a derived class, validates whether all properties of this object have values that are valid and consistent.

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

Syntax

'Declaration
Public MustOverride Sub Validate
public abstract void Validate()
public:
virtual void Validate() abstract
abstract Validate : unit -> unit
public abstract function Validate()

Exceptions

Exception Condition
InvalidLoadProfileException

One or more property values is inconsistent or invalid.

Remarks

The exception message is displayed in the load test results viewer in Visual Studio.

This method must be implemented by each class extending LoadTestLoadProfile.

Whenever a load test plug-in assigns a new object to the LoadTestScenario.LoadProfile property, this Validate method is called by the testing framework. If an exception is thrown, it is reported in the load test results, both in the user interface and in the test results, and the current load profile settings continue to remain in effect.

.NET Framework Security

See Also

Reference

LoadTestLoadProfile Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace

Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestScenario