SqlXml Class
Represents XML data stored in or retrieved from a server.
Assembly: System.Data (in System.Data.dll)
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | CreateReader() | Gets the value of the XML content of this SqlXml as a XmlReader. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() ![]() | GetXsdType(XmlSchemaSet) | Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IXmlSerializable.GetSchema() | For a description of this member, see GetSchema. |
![]() ![]() | IXmlSerializable.ReadXml(XmlReader) | For a description of this member, see ReadXml. |
![]() ![]() | IXmlSerializable.WriteXml(XmlWriter) | For a description of this member, see WriteXml. |
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.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




