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

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

Syntax

Visual Basic (Declaration)
Public Function Replace ( _
	oldValue As String, _
	newValue As String _
) As SqlString
C#
public SqlString Replace(
	string oldValue,
	string newValue
)
Visual C++
public:
SqlString^ Replace(
	String^ oldValue, 
	String^ newValue
)
JavaScript
function replace(oldValue, 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