Share via


ITestBase.ReplaceParameter Method (String, String)

 

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

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

Parameters

  • parameterName
    Type: System.String

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

  • text
    Type: System.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.

See Also

ITestBase Interface
Microsoft.TeamFoundation.TestManagement.Client Namespace

Return to top