ArcFM Responder Mobile Developer Guide
GetBytes<T> Method






The struct type to convert from.
Returns the specified struct value as an array of bytes.
Syntax
'Declaration
 
Public Shared Function GetBytes(Of T As {New, Struct})( _
   ByVal value As T _
) As System.Byte()
'Usage
 
Dim value As T
Dim value() As System.Byte
 
value = StructConverter.GetBytes(Of T)(value)
public static System.byte[] GetBytes<T>( 
   T value
)
where T: new(), struct
public function GetBytes( 
    value: T
): System.array of Byte; static; 
public static function GetBytes( 
   value : T
) : System.byte[];
public: static System.byte[]* GetBytes<T>( 
   T* value
) 
where T: gcnew(), value class
public:
static System.array<byte>^ GetBytesgeneric<typename T>
( 
   T^ value
) 
where T: gcnew(), value class

Parameters

value

Type Parameters

T
The struct type to convert from.

Return Value

An array of bytes representing the struct.
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

Reference

StructConverter Class
StructConverter Members

Send Feedback