Official Content

Returns a MailRecipient type object that is stored in the collection. 

Syntax

&VarBasedOnMailRecipientCollection.New(Name, Address)

Where:

Name
     Name of the new MailRecipient type object within the collection. If this parameter is an empty string, the new object to be created in the collection will be assigned a Name property equal to the Address property. 

Address
     Address of the new MailRecipient type object within the collection. If the Address parameter is an empty string, the call to the New method will be ignored. 

Type Returned:
Numeric

Scope

Extended Data Types: MailRecipientCollection
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Description

It creates a new MailRecipient type object within a collection, in the name and address specified in the Name and Address parameters respectively. 

Note: This method returns an error code, so it is possible to call it as a function (i.e.:  &Err = &MailRecipientCollection.New(.....)).

See Also

MailRecipient Data Type
MailRecipientCollection Data Type







Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant