Share via


ITestBase.ReplaceParameter Method

Finds all instances where the provided parameter is used in actions, deletes any iteration data for each instance, and replaces it by using the provided literal text.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

'Declaration
Sub ReplaceParameter ( _
    parameterName As String, _
    text As String _
)
void ReplaceParameter(
    string parameterName,
    string text
)
void ReplaceParameter(
    String^ parameterName, 
    String^ text
)
abstract ReplaceParameter : 
        parameterName:string * 
        text:string -> unit
function ReplaceParameter(
    parameterName : String, 
    text : String
)

Parameters

  • parameterName
    Type: String

    The name of the parameter to replace. If this name is empty, the method does nothing.

  • text
    Type: String

    The text with which to replace the parameter reference. An empty string deletes the parameter reference from the actions.

Remarks

If there is no parameter with the given "fromName" this method does nothing

This can also be used as delete, by passing an empty string as the replacement text.

.NET Framework Security

See Also

Reference

ITestBase Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace