Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SqlXml::CreateReader Method ()

 

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

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public:
XmlReader^ CreateReader()

Return Value

Type: System.Xml::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.

Exception Condition
SqlNullValueException

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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft