SqlBytes 類別

定義

表示可變動的參考型別 (Reference Type),用來包裝 BufferStream

public ref class SqlBytes sealed : System::Data::SqlTypes::INullable, System::Runtime::Serialization::ISerializable, System::Xml::Serialization::IXmlSerializable
public ref class SqlBytes sealed : System::Data::SqlTypes::INullable
public sealed class SqlBytes : System.Data.SqlTypes.INullable, System.Runtime.Serialization.ISerializable, System.Xml.Serialization.IXmlSerializable
public sealed class SqlBytes : System.Data.SqlTypes.INullable
[System.Serializable]
public sealed class SqlBytes : System.Data.SqlTypes.INullable, System.Runtime.Serialization.ISerializable, System.Xml.Serialization.IXmlSerializable
type SqlBytes = class
    interface INullable
    interface ISerializable
    interface IXmlSerializable
type SqlBytes = class
    interface INullable
[<System.Serializable>]
type SqlBytes = class
    interface INullable
    interface IXmlSerializable
    interface ISerializable
Public NotInheritable Class SqlBytes
Implements INullable, ISerializable, IXmlSerializable
Public NotInheritable Class SqlBytes
Implements INullable
繼承
SqlBytes
屬性
實作

建構函式

SqlBytes()

初始化 SqlBytes 類別的新執行個體。

SqlBytes(Byte[])

根據指定的位元組陣列,初始化 SqlBytes 類別的新執行個體。

SqlBytes(SqlBinary)

根據指定的 SqlBytes 值來初始化 SqlBinary 類別的新執行個體。

SqlBytes(Stream)

根據指定的 SqlBytes 值來初始化 Stream 類別的新執行個體。

屬性

Buffer

傳回內部緩衝區的參考。

IsNull

取得布林值,這個值表示這個 SqlBytes 是否為 null。

Item[Int64]

取得或設定位於指定索引處的 SqlBytes 執行個體。

Length

取得 SqlBytes 執行個體內含值的長度。

MaxLength

取得這個 SqlBytes 的內部緩衝區值的最大長度。

Null

取得此 SqlBytes 的 Null 執行個體。

Storage

傳回關於這個 SqlBytes 執行個體儲存狀態的資訊。

Stream

取得或將這個 SqlBytes 的資料設定為資料流。

Value

傳回這個 SqlBytes 所保留值的 Managed 複本。

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetXsdType(XmlSchemaSet)

傳回指定之 XmlSchemaSet 的 XML 結構描述定義語言 (XSD)。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Read(Int64, Byte[], Int32, Int32)

將位元組從這個 SqlBytes 執行個體複製到傳入緩衝區,並傳回複製位元組的數目。

SetLength(Int64)

設定這個 SqlBytes 執行個體的長度。

SetNull()

將這個 SqlBytes 執行個體設定為 null。

ToSqlBinary()

從這個 SqlBinary 執行個體建構並傳回 SqlBytes

ToString()

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

(繼承來源 Object)
Write(Int64, Byte[], Int32, Int32)

將位元組從傳入緩衝區複製到這個 SqlBytes 執行個體。

運算子

Explicit(SqlBinary to SqlBytes)

SqlBinary 結構轉換成 SqlBytes 結構。

Explicit(SqlBytes to SqlBinary)

SqlBytes 結構轉換成 SqlBinary 結構。

明確介面實作

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

取得序列化資訊,以及重新執行個體化這個 SqlBytes 執行個體所需的所有資料。

IXmlSerializable.GetSchema()

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。

IXmlSerializable.ReadXml(XmlReader)

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。

IXmlSerializable.WriteXml(XmlWriter)

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。

適用於

另請參閱