Extracts the constraint name based on a template (i.e., templateStartconstraintNametemplateEnd).

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

Syntax

C#
protected string ExtractUsingTemplate(
	string templateStart,
	string templateEnd,
	string message
)
Visual Basic
Protected Function ExtractUsingTemplate ( _
	templateStart As String, _
	templateEnd As String, _
	message As String _
) As String
Visual C++
protected:
String^ ExtractUsingTemplate(
	String^ templateStart, 
	String^ templateEnd, 
	String^ message
)

Parameters

templateStart
Type: System..::..String
The pattern denoting the start of the constraint name within the message.
templateEnd
Type: System..::..String
The pattern denoting the end of the constraint name within the message.
message
Type: System..::..String
The templated error message containing the constraint name.

Return Value

The found constraint name, or null.

See Also