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: StringThe name of the parameter to replace. If this name is empty, the method does nothing.
text
Type: StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.