SqlXml 類別

定義

代表儲存在或從伺服器檢索的 XML 資料。

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
繼承
SqlXml
屬性
實作

備註

此類別包含一個 -衍生型別的實例 XmlReader,並透過實作 INullable 介面加入 SQL 專屬特性,如資料庫式的空語意。 當你使用 SqlXml 時,指派給 SqlXml 實例的 XML 值必須是可 XmlReader被 . 對於 Unicode 資料,位元組順序標記BOM()必須存在於資料流中。

建構函式

名稱 Description
SqlXml()

建立新的 SqlXml 實例。

SqlXml(Stream)

建立一個新 SqlXml 實例,提供來自所提供 Stream-衍生實例的 XML 值。

SqlXml(XmlReader)

建立一個新 SqlXml 實例,並將其與所提供 XmlReader的內容關聯。

屬性

名稱 Description
IsNull

表示此實例是否代表空 SqlXml 值。

Null

代表該 SqlXml 型別的空實例。

Value

取得此 SqlXml 實例 XML 內容的字串表示。

方法

名稱 Description
CreateReader()

取得此 SqlXml XML 內容的值為 XmlReader

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
GetXsdType(XmlSchemaSet)

回傳指定的 XmlSchemaSetXML 結構定義語言(XSD)。

MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

明確介面實作

名稱 Description
IXmlSerializable.GetSchema()

關於此成員的描述,請參見 GetSchema()

IXmlSerializable.ReadXml(XmlReader)

關於此成員的描述,請參見 ReadXml(XmlReader)

IXmlSerializable.WriteXml(XmlWriter)

關於此成員的描述,請參見 WriteXml(XmlWriter)

適用於

另請參閱