Udostępnij za pośrednictwem


WindowsRuntimeBufferExtensions.GetByte(IBuffer, UInt32) Metoda

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Zwraca bajt z określonym przesunięciem w określonym interfejsie Windows.Storage.Streams.IBuffer.

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

Parametry

source
IBuffer

Bufor umożliwiający pobranie bajtu z.

byteOffset
UInt32

Przesunięcie bajtu.

Zwraca

Bajt z określonym przesunięciem.

Atrybuty

Wyjątki

source ma wartość null.

byteOffset wartość jest mniejsza niż 0 (zero).

byteOffsetjest większa lub równa pojemności .source

Dotyczy