SqlXml.CreateReader SqlXml.CreateReader SqlXml.CreateReader SqlXml.CreateReader Method


Gets the value of the XML content of this SqlXml as a XmlReader.

 System::Xml::XmlReader ^ CreateReader();
public System.Xml.XmlReader CreateReader ();
member this.CreateReader : unit -> System.Xml.XmlReader
Public Function CreateReader () As XmlReader


A XmlReader-derived instance that contains the XML content. The actual type may vary (for example, the return value might be XmlTextReader) depending on how the information is represented internally, on the server.


Attempt was made to access this property on a null instance of SqlXml.


If the SqlXml instance was initialized to null (Nothing in Visual Basic), this method returns null.

Applies to

See also