MessageField

Constructor

Visual Basic

Overloads Public Sub New(
    ByVal fieldName As String,
    ByVal fieldValue As value_type)
Overloads Public Sub New(
    ByVal messageField As MessageField,
    ByVal fieldValue As value_type,
    ByVal fieldId As UInt16)

C#

public MessageField(
    string fieldName,
    value_type  fieldValue);
public MessageField(
    string fieldName,
    value_type  fieldValue,
    ushort fieldId);

Purpose

Create a message field object.

Remarks

 

Overloading

This method has many overloads. MessageField Constructor Overloads by Category classifies them into two main categories (based on the number of parameters).

MessageField Constructor Overloads by Category

Signature

Description

fieldName,fieldValue

Overloads with two parameters add fields without identifiers.

The first parameter specifies the name of the new field. Fields without identifiers must have non-null names.

The second parameter specifies both the type of the field and its data; see also Message.add Homologous Types.

fieldName,fieldValue,fieldId

Overloads with three parameters add fields with identifiers.

The first parameter specifies the name of the new field. A field with an identifier may have a null name.

The second parameter specifies both the type of the field and its data; see also Message.add Homologous Types.

The third parameter specifies the field identifier. All field identifiers must be unique within each message. Integers in the range [1, 65535] are valid arguments for this parameter.

See Also

Message.AddField

Message.RemoveField

Message.UpdateField