ImageMan.Net Version 3 Summer 2012 Release
ToUInt16(Byte[],Int32,ByteOrder,ByteOrder) Method
See Also  Send Feedback
DTI.ImageMan.Metadata.Exif Namespace > BitConverterEx Class > ToUInt16 Method : ToUInt16(Byte[],Int32,ByteOrder,ByteOrder) Method





value
startIndex
from
to

Glossary Item Box

Converts the given array of bytes to a 16-bit unsigned integer.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function ToUInt16( _
   ByVal value() As System.Byte, _
   ByVal startIndex As System.Integer, _
   ByVal from As BitConverterEx.ByteOrder, _
   ByVal to As BitConverterEx.ByteOrder _
) As System.UShort
Visual Basic (Usage)Copy Code
Dim value() As System.Byte
Dim startIndex As System.Integer
Dim from As BitConverterEx.ByteOrder
Dim to As BitConverterEx.ByteOrder
Dim value As System.UShort
 
value = BitConverterEx.ToUInt16(value, startIndex, from, to)
C# 
public static System.ushort ToUInt16( 
   System.byte[] value,
   System.int startIndex,
   BitConverterEx.ByteOrder from,
   BitConverterEx.ByteOrder to
)
JScript 
public static function ToUInt16( 
   value : System.byte[],
   startIndex : System.int,
   from : BitConverterEx.ByteOrder,
   to : BitConverterEx.ByteOrder
) : System.ushort;
Managed Extensions for C++ 
public: static System.ushort ToUInt16( 
   System.byte[]* value,
   System.int startIndex,
   BitConverterEx.ByteOrder from,
   BitConverterEx.ByteOrder to
) 
C++/CLI 
public:
static System.ushort ToUInt16( 
   System.array<byte>^ value,
   System.int startIndex,
   BitConverterEx.ByteOrder from,
   BitConverterEx.ByteOrder to
) 

Parameters

value
startIndex
from
to

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.