Read mappings from an XmlDocument.

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

Syntax

Visual Basic (Declaration)
Public Function AddDocument ( _
	doc As XmlDocument, _
	name As String _
) As Configuration
C#
public Configuration AddDocument(
	XmlDocument doc,
	string name
)
Visual C++
public:
Configuration^ AddDocument(
	XmlDocument^ doc, 
	String^ name
)
JavaScript
function addDocument(doc, name);

Parameters

doc
Type: System.Xml..::.XmlDocument
A loaded XmlDocument that contains the mappings.
name
Type: System..::.String
The name of the document, for error reporting purposes.

Return Value

This configuration object.

See Also