Extracts the constraint name based on a template (i.e., templateStartconstraintNametemplateEnd).
Namespace: NHibernate.ExceptionsAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
Visual Basic |
---|
Protected Function ExtractUsingTemplate ( _
templateStart As String, _
templateEnd As String, _
message As String _
) As String |
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