System.Xml.XmlReader.CreateSqlReader Method (Stream, XmlReaderSettings, XmlParserContext)
Creates a new XmlReader instance that can be used to read SQL Binary XML data. This method is not intended for use.
Namespace: System.Xml.
Assembly: System.Xml (in system.xml.dll)
Friend Shared Function CreateSqlReader(_
input As System.IO.Stream, _
settings As System.Xml.XmlReaderSettings, _
inputContext As System.Xml.XmlParserContext _
) As System.Xml.XmlReader
internal static System.Xml.XmlReader CreateSqlReader(
System.IO.Stream input,
System.Xml.XmlReaderSettings settings,
System.Xml.XmlParserContext inputContext
)
Parameters
input
The stream containing the XML data.settings
The XmlReaderSettings object used to configure the new XmlReader instance.inputContext
The XmlParserContext object that provides the context information required to parse an XML fragment.
Return Value
An XmlReader object to read SQL Binary XML data.
Remarks
Microsoft SQL Server 2005 returns the results of FOR XML queries in a custom binary XML format (the SQL Binary XML). The ADO.NET and ADOMD.NET clients use the CreateSqlReader method through reflection to create an XML reader that can read the SQL Binary XML format.
![]() |
---|
This method is internal, and it is not intended to be called from outside the system.xml.dll assembly. Use the Create method instead. |
Version Information
.NET Framework
Supported in: 2.0