LoadTestGoalBasedLoadProfile.Validate Method
Throws an InvalidLoadProfileException if the LoadProfile object has properties that are inconsistent or not valid. It also displays an appropriate message.
Namespace: Microsoft.VisualStudio.TestTools.LoadTesting
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
Syntax
'Declaration
Public Overrides Sub Validate
public override void Validate()
public:
virtual void Validate() override
abstract Validate : unit -> unit
override Validate : unit -> unit
public override function Validate()
Remarks
Whenever a Load Test Plug-in assigns a new object to the LoadProfile property of LoadTestScenario, the Validate() method of the class that extends LoadTestLoadProfile is called. If Validate() throws an exception, the exception is reported in the load test results, both in the user interface (UI) and in the results database. When this occurs, the current load profile settings continue to remain in effect.
.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.