Brecham.Obex — An OBEX library for the .NET Framework

ObexHeaderCollection.GetOneByte Method 

Gets the value of the One-byte header in the collection with the given header id.

[Visual Basic]
Public Function GetOneByte( _
   ByVal headerId As ObexHeaderId _
) As Byte
[C#]
public byte GetOneByte(
   ObexHeaderId headerId
);

Parameters

headerId
The ObexHeaderId of the header to get. This must be a header id of type One-byte, otherwise an error will occur.

Return Value

A Byte holding the value of the specified header.

Exceptions

Exception Type Condition
ArgumentException The specified Header ID is not of One-byte type.
ArgumentException No header with specified Header Id is present in the collection.

See Also

ObexHeaderCollection Class | Brecham.Obex Namespace