OpenTypeMethods.Replace Method
Replaces one substring with a second substring in a target string.
Namespace: System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Shared Function Replace ( _
targetString As Object, _
substring As Object, _
newString As Object _
) As Object
'Usage
Dim targetString As Object
Dim substring As Object
Dim newString As Object
Dim returnValue As Object
returnValue = OpenTypeMethods.Replace(targetString, _
substring, newString)
public static Object Replace(
Object targetString,
Object substring,
Object newString
)
public:
static Object^ Replace(
Object^ targetString,
Object^ substring,
Object^ newString
)
static member Replace :
targetString:Object *
substring:Object *
newString:Object -> Object
public static function Replace(
targetString : Object,
substring : Object,
newString : Object
) : Object
Parameters
- targetString
Type: System.Object
The string with the substring to replace.
- substring
Type: System.Object
The substring to be replaced.
- newString
Type: System.Object
The new substring.
Return Value
Type: System.Object
A new string with the substring replaced with the new substring.