Replaces all occurrences of a specified String in this instance, with another specified String .

Namespace: NHibernate.SqlCommand
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public SqlString Replace(
	string oldValue,
	string newValue
)
Visual Basic
Public Function Replace ( _
	oldValue As String, _
	newValue As String _
) As SqlString
Visual C++
public:
SqlString^ Replace(
	String^ oldValue, 
	String^ newValue
)

Parameters

oldValue
Type: System..::..String
A String to be replaced.
newValue
Type: System..::..String
A String to replace all occurrences of oldValue.

Return Value

A new SqlString with oldValue replaced by the newValue. The new SqlString is in the compacted form.

See Also