SqlBytes 類別

定義

表示可變動的參考型別 (Reference Type),用來包裝 BufferStreamRepresents a mutable reference type that wraps either a Buffer or a Stream.

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

建構函式

SqlBytes()

初始化 SqlBytes 類別的新執行個體。Initializes a new instance of the SqlBytes class.

SqlBytes(Byte[])

根據指定的位元組陣列,初始化 SqlBytes 類別的新執行個體。Initializes a new instance of the SqlBytes class based on the specified byte array.

SqlBytes(SqlBinary)

根據指定的 SqlBytes 值來初始化 SqlBinary 類別的新執行個體。Initializes a new instance of the SqlBytes class based on the specified SqlBinary value.

SqlBytes(Stream)

根據指定的 SqlBytes 值來初始化 Stream 類別的新執行個體。Initializes a new instance of the SqlBytes class based on the specified Stream value.

屬性

Buffer

傳回內部緩衝區的參考。Returns a reference to the internal buffer.

IsNull

取得布林值,這個值表示這個 SqlBytes 是否為 null。Gets a Boolean value that indicates whether this SqlBytes is null.

Item[Int64]

取得或設定位於指定索引處的 SqlBytes 執行個體。Gets or sets the SqlBytes instance at the specified index.

Length

取得 SqlBytes 執行個體內含值的長度。Gets the length of the value that is contained in the SqlBytes instance.

MaxLength

取得這個 SqlBytes 的內部緩衝區值的最大長度。Gets the maximum length of the value of the internal buffer of this SqlBytes.

Null

取得此 SqlBytes 的 Null 執行個體。Gets a null instance of this SqlBytes.

Storage

傳回關於這個 SqlBytes 執行個體儲存狀態的資訊。Returns information about the storage state of this SqlBytes instance.

Stream

取得或將這個 SqlBytes 的資料設定為資料流。Gets or sets the data of this SqlBytes as a stream.

Value

傳回這個 SqlBytes 所保留值的 Managed 複本。Returns a managed copy of the value held by this SqlBytes.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
GetXsdType(XmlSchemaSet)

傳回指定之 XmlSchemaSet 的 XML 結構描述定義語言 (XSD)。Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet.

MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

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

將位元組從這個 SqlBytes 執行個體複製到傳入緩衝區,並傳回複製位元組的數目。Copies bytes from this SqlBytes instance to the passed-in buffer and returns the number of copied bytes.

SetLength(Int64)

設定這個 SqlBytes 執行個體的長度。Sets the length of this SqlBytes instance.

SetNull()

將這個 SqlBytes 執行個體設定為 null。Sets this SqlBytes instance to null.

ToSqlBinary()

從這個 SqlBinary 執行個體建構並傳回 SqlBytesConstructs and returns a SqlBinary from this SqlBytes instance.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

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

將位元組從傳入緩衝區複製到這個 SqlBytes 執行個體。Copies bytes from the passed-in buffer to this SqlBytes instance.

運算子

Explicit(SqlBinary to SqlBytes)

SqlBinary 結構轉換成 SqlBytes 結構。Converts a SqlBinary structure to a SqlBytes structure.

Explicit(SqlBytes to SqlBinary)

SqlBytes 結構轉換成 SqlBinary 結構。Converts a SqlBytes structure to a SqlBinary structure.

明確介面實作

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

取得序列化資訊,以及重新執行個體化這個 SqlBytes 執行個體所需的所有資料。Gets serialization information with all the data needed to reinstantiate this SqlBytes instance.

IXmlSerializable.GetSchema()

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

IXmlSerializable.ReadXml(XmlReader)

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

IXmlSerializable.WriteXml(XmlWriter)

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

適用於

另請參閱