SqlBinary.WrapBytes(Byte[]) 方法

定義

將位元組陣組轉換成 SqlBinary 結構。

public:
 static System::Data::SqlTypes::SqlBinary WrapBytes(cli::array <System::Byte> ^ bytes);
public static System.Data.SqlTypes.SqlBinary WrapBytes (byte[] bytes);
static member WrapBytes : byte[] -> System.Data.SqlTypes.SqlBinary
Public Shared Function WrapBytes (bytes As Byte()) As SqlBinary

參數

bytes
Byte[]

要用來建立 SqlBinary 結構的位元組陣列。

傳回

SqlBinary從位元組陣列建立的結構。

備註

這個方法會直接從傳遞的位元組數位建立 SqlBinary 結構,而不需複製它們。

適用於