SqlXml Class
TOC
Collapse the table of content
Expand the table of content

SqlXml Class

 

Represents XML data stored in or retrieved from a server.

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

System.Object
  System.Data.SqlTypes.SqlXml

[SerializableAttribute]
public sealed class SqlXml : INullable, IXmlSerializable

NameDescription
System_CAPS_pubmethodSqlXml()

Creates a new SqlXml instance.

System_CAPS_pubmethodSqlXml(Stream)

Creates a new SqlXml instance, supplying the XML value from the supplied Stream-derived instance.

System_CAPS_pubmethodSqlXml(XmlReader)

Creates a new SqlXml instance and associates it with the content of the supplied XmlReader.

NameDescription
System_CAPS_pubpropertyIsNull

Indicates whether this instance represents a null SqlXml value.

System_CAPS_pubpropertySystem_CAPS_staticNull

Represents a null instance of the SqlXml type.

System_CAPS_pubpropertyValue

Gets the string representation of the XML content of this SqlXml instance.

NameDescription
System_CAPS_pubmethodCreateReader()

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetXsdType(XmlSchemaSet)

Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.GetSchema()

For a description of this member, see GetSchema.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.ReadXml(XmlReader)

For a description of this member, see ReadXml.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.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.

Universal Windows Platform
Available since 10
.NET Framework
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.

Return to top
Show:
© 2016 Microsoft