SqlXml
Class
Definition
Represents XML data stored in or retrieved from a server.
public sealed class SqlXml : System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
- Inheritance
-
SqlXml
- Implements
Inherited Members
System.Object
Remarks
This class contains an instance of an XmlReader-derived type, and adds SQL-specific features such as database-style null semantics by implementing the INullable interface. When you use SqlXml, the XML value that you assign to the SqlXml instance must be consumable by an XmlReader. For unicode data, the Byte Order Mark (BOM) must be present in the stream of data.
Constructors
| SqlXml() |
Creates a new SqlXml instance. |
| SqlXml(Stream) |
Creates a new SqlXml instance, supplying the XML value from the supplied Stream-derived instance. |
| SqlXml(XmlReader) |
Creates a new SqlXml instance and associates it with the content of the supplied XmlReader. |
Properties
| IsNull |
Indicates whether this instance represents a null SqlXml value. |
| Null |
Represents a null instance of the SqlXml type. |
| Value |
Gets the string representation of the XML content of this SqlXml instance. |
Methods
| CreateReader() |
Gets the value of the XML content of this SqlXml as a XmlReader. |
| GetXsdType(XmlSchemaSet) |
Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet. |
Explicit Interface Implementations
| IXmlSerializable.GetSchema() |
For a description of this member, see GetSchema(). |
| IXmlSerializable.ReadXml(XmlReader) |
For a description of this member, see ReadXml(XmlReader). |
| IXmlSerializable.WriteXml(XmlWriter) |
For a description of this member, see WriteXml(XmlWriter). |