Bagikan melalui


WindowsRuntimeBufferExtensions.GetByte(IBuffer, UInt32) Metode

Definisi

Penting

API ini bukan kompatibel CLS.

Mengembalikan byte pada offset yang ditentukan di antarmuka Windows.Storage.Streams.IBuffer yang ditentukan.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Byte GetByte(Windows::Storage::Streams::IBuffer ^ source, System::UInt32 byteOffset);
[System.CLSCompliant(false)]
public static byte GetByte (this Windows.Storage.Streams.IBuffer source, uint byteOffset);
[<System.CLSCompliant(false)>]
static member GetByte : Windows.Storage.Streams.IBuffer * uint32 -> byte
<Extension()>
Public Function GetByte (source As IBuffer, byteOffset As UInteger) As Byte

Parameter

source
IBuffer

Buffer untuk mendapatkan byte dari.

byteOffset
UInt32

Offset byte.

Mengembalikan

Byte pada offset yang ditentukan.

Atribut

Pengecualian

source adalah null.

byteOffset kurang dari 0 (nol).

byteOffset lebih besar dari atau sama dengan kapasitas source.

Berlaku untuk