Share via


LoadTestLoadProfile.Copy Method

Returns a copy of the current object so it can be modified and assigned to the LoadTestScenario.LoadProfile property.

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

Syntax

'Declaration
Public Overridable Function Copy As LoadTestLoadProfile
public virtual LoadTestLoadProfile Copy()
public:
virtual LoadTestLoadProfile^ Copy()
abstract Copy : unit -> LoadTestLoadProfile  
override Copy : unit -> LoadTestLoadProfile
public function Copy() : LoadTestLoadProfile

Return Value

Type: Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestLoadProfile
A copy of the current object.

Remarks

Changes to any of the properties of a LoadTestLoadProfile classes should all be made before you assign it to the LoadTestScenario.LoadProfile property. After the [assignment], it is read-only. Use this method to get a writable copy of the object as shown in the example for LoadTestGoalBasedLoadProfile.

.NET Framework Security

See Also

Reference

LoadTestLoadProfile Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace

LoadTestScenario

LoadTestGoalBasedLoadProfile