Read mappings from a String. This method is equivalent to
AddXmlString(String).
Namespace:
NHibernate.CfgAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function AddXml ( _ xml As String, _ name As String _ ) As Configuration |
C# |
---|
public Configuration AddXml( string xml, string name ) |
Visual C++ |
---|
public: Configuration^ AddXml( String^ xml, String^ name ) |
JavaScript |
---|
function addXml(xml, name); |
Parameters
- xml
- Type: System..::.String
an XML string
- name
- Type: System..::.String
The name to use in error reporting. May be nullNothingnullptra null reference (Nothing in Visual Basic).