ICustomDataTypeAdapter.Decode()

Method

Visual Basic

Function Decode(
    ByVal bytes As Byte() )
  As ICustomDataType

C#

ICustomDataType Decode(
    byte[] bytes);

Purpose

Decode a byte array to produce a custom datatype.

Remarks

When this method successfully decodes the data, it must return the decoding as a .NET object—namely, an instance of the custom datatype. When this method cannot decode the data, it must return null.

Parameter

Description

bytes

Decode the data contained in this byte array.

This argument cannot be null. However, it can be a byte array with length zero.