Read mappings from a Stream.
Namespace: NHibernate.CfgAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public Configuration AddInputStream( Stream xmlInputStream, string name ) |
Visual Basic |
---|
Public Function AddInputStream ( _ xmlInputStream As Stream, _ name As String _ ) As Configuration |
Visual C++ |
---|
public: Configuration^ AddInputStream( Stream^ xmlInputStream, String^ name ) |
Parameters
- xmlInputStream
- Type: System.IO..::..Stream
The stream containing XML
- name
- Type: System..::..String
The name of the stream to use in error reporting. May be nullNothingnullptra null reference (Nothing in Visual Basic).
Return Value
This Configuration object.Remarks
The Stream passed in through the parameter xmlInputStream
is not guaranteed to be cleaned up by this method. It is the caller's responsiblity to
ensure that xmlInputStream is properly handled when this method
completes.