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 ,而非複製該位元組。

適用於