Cuemon .NET Framework
Replace(String,IEnumerable<StringReplacePair>,StringComparison) Method

The System.String value to perform the replacement on.
A sequence of StringReplacePair values.
One of the enumeration values that specifies the rules to use in the comparison.
Replaces all occurrences of the OldValue with StringReplacePair.NewValue of the replacePairs sequence in value.
Syntax
'Declaration
 
Public Overloads Shared Function Replace( _
   ByVal value As String, _
   ByVal replacePairs As IEnumerable(Of StringReplacePair), _
   ByVal comparison As StringComparison _
) As String

Parameters

value
The System.String value to perform the replacement on.
replacePairs
A sequence of StringReplacePair values.
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 StringReplacePair.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