Open topic with navigation

TIBCO Rendezvous® 8.7.0

# 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

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2023. Cloud Software Group, Inc. All Rights Reserved.