ICustomDataTypeAdapter.Encode()

Method

Visual Basic

Function Encode(
    ByVal customDataType As ICustomDataType) )
  As Byte()

C#

byte[] Encode(
    ICustomDataType customDataType);

Purpose

Encode a custom datatype instance to produce a byte array.

Remarks

When this method successfully encodes the data, it must return the encoding as a byte array; the byte array can have length zero. When this method fails, it must return null.

Rendezvous methods that call this encoder incorporate its byte array value directly into a Message object.

Parameter

Description

customDataType

Encode this data (that is, an instance of a custom datatype class).