Share via


LoadTestGoalBasedLoadProfile.MaxTargetValue Property

Gets or sets an upper limit to target. Load is increased or decreased to keep the counter below this value.

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

Syntax

'Declaration
Public Property MaxTargetValue As Single
'Usage
Dim instance As LoadTestGoalBasedLoadProfile 
Dim value As Single 

value = instance.MaxTargetValue

instance.MaxTargetValue = value
public float MaxTargetValue { get; set; }
public:
property float MaxTargetValue {
    float get ();
    void set (float value);
}
public function get MaxTargetValue () : float 
public function set MaxTargetValue (value : float)

Property Value

Type: System.Single
The upper limit to target.

Remarks

Changes to any of the properties of any of the LoadTestLoadProfile classes should all be made before you assign the LoadTestLoadProfile object to the LoadProfile property of the LoadTestScenario. After the LoadTestLoadProfile object has been assigned to the LoadProfile property, it becomes a read-only version. An exception will be thrown if you try to set any of the properties of the LoadProfile object while it is in the read-only state. To get a new writable LoadProfile object, call the Copy() method as shown in example under LoadTestGoalBasedLoadProfile.

.NET Framework Security

See Also

Reference

LoadTestGoalBasedLoadProfile Class

LoadTestGoalBasedLoadProfile Members

Microsoft.VisualStudio.TestTools.LoadTesting Namespace