Add
Description
Adds a new QueryFieldDef object to this QueryFieldDefs collection.
Passing
in a field path argument to this method, fills in the field path for the new
object. If you do not specifiy a field path, then you must use the FieldPathName method of the QueryFieldDef
Object to set the value.
For Perl, there are two separate methods that accomplish the same functionality:
- AddByFieldPath
- AddNew
These methods add a new QueryFieldDef object to the end of
the collection. You can retrieve items from the collection using the Item method.
Syntax
Perl
$queryfielddefs->AddByFieldPath(fieldPath);
$queryfielddefs->AddNew();
- Identifier
- Description
- queryfielddefs
- A QueryFieldDefs collection object, representing the set of QueryFieldDef objects available for fetching as a collection.
- fieldPath
- A String containing the field path to the QueryFieldDef object to add to this collection.
- Return value
- Returns the QueryFieldDef object that was added.