संपादित करें

इसके माध्यम से साझा किया गया


SqlXml Class

Definition

Represents XML data stored in or retrieved from a server.

public ref class SqlXml sealed : System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
public ref class SqlXml sealed : System::Data::SqlTypes::INullable
public sealed class SqlXml : System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
public sealed class SqlXml : System.Data.SqlTypes.INullable
[System.Serializable]
public sealed class SqlXml : System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlXml = class
    interface INullable
    interface IXmlSerializable
type SqlXml = class
    interface INullable
[<System.Serializable>]
type SqlXml = class
    interface INullable
    interface IXmlSerializable
Public NotInheritable Class SqlXml
Implements INullable, IXmlSerializable
Public NotInheritable Class SqlXml
Implements INullable
Inheritance
SqlXml
Attributes
Implements

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.

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()

Gets the Type of the current instance.

(Inherited from Object)
GetXsdType(XmlSchemaSet)

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

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

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

Applies to

See also