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

ObexHeaderCollection.GetByteSeq Method 

Gets the value of the Byte Sequence header in the collection with the given header id.

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

Parameters

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

Return Value

A Byte array holding the value of the specified header.

Exceptions

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

See Also

ObexHeaderCollection Class | Brecham.Obex Namespace