SqlBytes.Buffer 屬性

定義

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

public:
 property cli::array <System::Byte> ^ Buffer { cli::array <System::Byte> ^ get(); };
public byte[] Buffer { get; }
member this.Buffer : byte[]
Public ReadOnly Property Buffer As Byte()

屬性值

Byte[]

內部緩衝區的參考。A reference to the internal buffer. 如果是在 Unmanaged 指標上建立的 SqlBytes 執行個體,則會傳回內部緩衝區的 Managed 複本。For SqlBytes instances created on top of unmanaged pointers, it returns a managed copy of the internal buffer.

備註

傳回 null 值SqlBytes的 null 參考。Returns a null reference for null value SqlBytes.

針對的資料流程包裝SqlBytes實例擲回。 InvalidOperationExceptionThrows an InvalidOperationException for stream-wrapped instances of SqlBytes.

適用於

另請參閱