This documentation is archived and is not being maintained.

LoadTestLoadProfile Class

Provides an abstract base class for load test profiles.

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

public abstract class LoadTestLoadProfile

The LoadTestLoadProfile type exposes the following members.

Protected methodLoadTestLoadProfileInitializes a new instance of the LoadTestLoadProfile class.

Public propertyMaxUserCountGets or sets the maximum number of users that can be returned by the GetLoad method.
Public propertyMinUserCountGets or sets the minimum number of users that that can be returned by the GetLoad method of the class extending LoadTestLoadProfile.
Public propertyScenarioNameGets or sets the name of the scenario in the load test that the load profile implementation is controlling.

Public methodCheckIfProfileCanBeModifiedThrows an exception if the profile property is not yet ready to be modified.
Public methodCopyReturns a copy of the current object so it can be modified and assigned to the LoadTestScenario.LoadProfile property.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLoadWhen overridden in a derived class, returns the user load that should be used at the current time in the load test based on the number of seconds since the start of the load test.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRestoreUserCountAfterRestartRestores the current user count to the value it had before the restart.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodValidateWhen overridden in a derived class, validates whether all properties of this object have values that are valid and consistent.

LoadTestLoadProfile is an abstract base class for the following classes:

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.