WindowsRuntimeBufferExtensions.GetByte(IBuffer, UInt32) 方法

定義

重要

此 API 不符合 CLS 規範。

在指定的 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

參數

source
Windows.Storage.Streams.IBuffer

緩衝區是從中取得位元組的。

byteOffset
UInt32

位元組的偏移量。

傳回

位元組位於指定的偏移量。

屬性

例外狀況

source 為 null。

byteOffset 小於0(零)。

byteOffset 大於或等於 的 source容量。

適用於