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

定义

作为 SqlXml 来获取此 XmlReader 的 XML 内容的值。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

返回

一个包含 XML 内容的 XmlReader 派生实例。A XmlReader-derived instance that contains the XML content. 根据信息的内部表示方式,服务器上的实际类型会有所不同(例如,返回值可能为 XmlTextReader)。The actual type may vary (for example, the return value might be XmlTextReader) depending on how the information is represented internally, on the server.

异常

曾尝试访问 SqlXml 的 null 实例上的此属性。Attempt was made to access this property on a null instance of SqlXml.

注解

如果实例初始化为 null (Nothing在 Visual Basic 中), 则此方法返回 null。 SqlXmlIf the SqlXml instance was initialized to null (Nothing in Visual Basic), this method returns null.

适用于

另请参阅