次の方法で共有


BuildCommonUtil.Replace Method

Performs a string replacement.

Namespace:  Microsoft.TeamFoundation.Build.Common
Assembly:  Microsoft.TeamFoundation.Build.Common (in Microsoft.TeamFoundation.Build.Common.dll)

Syntax

'Declaration
Public Shared Function Replace ( _
    original As String, _
    pattern As String, _
    replacement As String, _
    ignoreCase As Boolean _
) As String
public static string Replace(
    string original,
    string pattern,
    string replacement,
    bool ignoreCase
)
public:
static String^ Replace(
    String^ original, 
    String^ pattern, 
    String^ replacement, 
    bool ignoreCase
)
static member Replace : 
        original:string * 
        pattern:string * 
        replacement:string * 
        ignoreCase:bool -> string
public static function Replace(
    original : String, 
    pattern : String, 
    replacement : String, 
    ignoreCase : boolean
) : String

Parameters

  • pattern
    Type: System.String

    The pattern to replace in the original

  • replacement
    Type: System.String

    The value to use as the replacement

  • ignoreCase
    Type: System.Boolean

    Indicates whether to perform a case-sensitive replacement

Return Value

Type: System.String
The original string with each occurrence of pattern replaced with replacement

.NET Framework Security

See Also

Reference

BuildCommonUtil Class

Microsoft.TeamFoundation.Build.Common Namespace