Cuemon .NET Framework
Replace(String,String,String,StringComparison) Method

The System.String value to perform the replacement on.
The System.String value to be replaced.
The System.String value to replace all occurrences of oldValue.
One of the enumeration values that specifies the rules to use in the comparison.
Replaces all occurrences of oldValue in value, with newValue.
Syntax
'Declaration
 
Public Overloads Shared Function Replace( _
   ByVal value As String, _
   ByVal oldValue As String, _
   ByVal newValue As String, _
   ByVal comparison As StringComparison _
) As String

Parameters

value
The System.String value to perform the replacement on.
oldValue
The System.String value to be replaced.
newValue
The System.String value to replace all occurrences of oldValue.
comparison
One of the enumeration values that specifies the rules to use in the comparison.

Return Value

A System.String equivalent to value but with all instances of oldValue replaced with newValue.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

StringUtility Class
StringUtility Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback