Export (0) Print
Expand All

WindowsRuntimeBufferExtensions.GetByte Method

.NET Framework 4.5

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)>]
static member GetByte : 
        source:IBuffer * 
        byteOffset:uint32 -> byte

Parameters

source
Type: IBuffer

The buffer to get the byte from.

byteOffset
Type: System.UInt32

The offset of the byte.

Return Value

Type: System.Byte
The byte at the specified offset.

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).

ExceptionCondition
ArgumentNullException

source is a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

byteOffset is less than 0 (zero).

ArgumentException

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

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft