共用方式為


ParameterizedString.ReplaceParameter Method

Replaces the specified parameter value by using the given replacement text.

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

Syntax

'Declaration
Public Function ReplaceParameter ( _
    name As String, _
    replacementText As String _
) As ParameterizedString
public ParameterizedString ReplaceParameter(
    string name,
    string replacementText
)
public:
ParameterizedString^ ReplaceParameter(
    String^ name, 
    String^ replacementText
)
member ReplaceParameter : 
        name:string * 
        replacementText:string -> ParameterizedString
public function ReplaceParameter(
    name : String, 
    replacementText : String
) : ParameterizedString

Parameters

  • name
    Type: String

    The name of the parameter to replace the value.

  • replacementText
    Type: String

    The value to put in the parameter.

Return Value

Type: Microsoft.TeamFoundation.TestManagement.Client.ParameterizedString
The changed parameterized string.

.NET Framework Security

See Also

Reference

ParameterizedString Class

Microsoft.TeamFoundation.TestManagement.Client Namespace