AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IPortalSearchRequest.SetFieldsToReturn Method

Sets the `Field`s to return.

void SetFieldsToReturn(
Field[] properties
);

#### Parameters

properties
  An array of `Field`s to retrieve.

#### Remarks

Fields must be retrievable. By default, `PlumtreeField.URL`, `PlumtreeField.TEXT_EXCERPT`, `PortalField.OBJECT_ID`, `PlumtreeField.NAME`, `PortalField.CLASS_ID`, `PlumtreeField.CREATED`, `PlumtreeField.LAST_MODIFIED`, `PlumtreeField.ICON_URL`, and `PlumtreeField.RANK` will be retrieved. Adding these fields in properties will have no effect.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | One or more of the fields are not retrievable.

#### See Also

IPortalSearchRequest Interface | Plumtree.Remote.PRC.Search Namespace