WindowsRuntimeBufferExtensions::GetByte Method
.NET Framework (current version)
Returns the byte at the specified offset in the specified Windows.Storage.Streams.IBuffer interface.
This API is not CLS-compliant. Namespace: System.Runtime.InteropServices.WindowsRuntime
Assembly: System.Runtime.WindowsRuntime (in System.Runtime.WindowsRuntime.dll)
[CLSCompliantAttribute(false)] [ExtensionAttribute] public: static unsigned char GetByte( IBuffer^ source, unsigned int byteOffset )
Parameters
- source
- Type: IBuffer
The buffer to get the byte from.
- byteOffset
- Type: System::UInt32
The offset of the byte.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IBuffer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).| Exception | Condition |
|---|---|
| ArgumentNullException | source is nullptr. |
| ArgumentOutOfRangeException | byteOffset is less than 0 (zero). |
| ArgumentException | byteOffset is greater than or equal to the capacity of source. |
Show: