WindowsRuntimeBufferExtensions.GetByte(IBuffer, UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 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
- IBuffer
从其中获取字节的缓冲区。
- byteOffset
- UInt32
字节的偏移量。
返回
位于指定偏移量处的字节。
- 属性
例外
source
为 null。
byteOffset
小于 0(零)。
byteOffset
大于或等于 source
的容量。