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

Definition

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

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

Returns

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.

Exceptions

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

Remarks

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

Applies to

See also