Edit

Share via


WindowsRuntimeBufferExtensions.GetByte(IBuffer, UInt32) Method

Definition

Important

This API is not CLS-compliant.

Returns the byte at the specified offset in the specified Windows.Storage.Streams.IBuffer interface.

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

Parameters

source
IBuffer

The buffer to get the byte from.

byteOffset
UInt32

The offset of the byte.

Returns

The byte at the specified offset.

Attributes

Exceptions

source is null.

byteOffset is less than 0 (zero).

byteOffset is greater than or equal to the capacity of source.

Applies to