Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
[This is preliminary documentation and is subject to change.]
Adds a new field to the collection of field to filter on,
with the possibility to specify whether to return data for the field and specify a data type for sorting.
Namespace: ContentStudio.Document.EPT
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public void AddField( string fieldName, bool returnData, XmlIndexQueryQueryDataTypes dataType )
Parameters
- fieldName
- Type: SystemString
The name of the field to filter on. The field name must be unique and cannot be null or Empty, nor can its length exceed MAX_FIELD_NAME_SIZE characters. - returnData
- Type: SystemBoolean
Indicates whether this field returns data or not. - dataType
- Type: ContentStudio.Document.EPTXmlIndexQueryQueryDataTypes
Indicates the data type of the field. This value is only used for fields that are used for sorting.
Exceptions
Exception | Condition |
---|---|
CSInvalidParameterException | There are too many fields in the collection. |
ArgumentOutOfRangeException |
|
ArgumentNullException | The FieldName cannot be null. |
ArgumentException | The field name already exists in the collection. |
See Also