XmlFilterObjectAddField Method (String, XmlIndexQueryQueryDataTypes) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Adds a new field to the collection of field to filter on that does not return data and is of a certain data type. The name of the field must be unique and indexed and the number of fields cannot exceed PARAMETER_COUNT.

Namespace: ContentStudio.Document.EPT
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public void AddField(
	string fieldName,
	XmlIndexQueryQueryDataTypes dataType
)

Parameters

fieldName
Type: SystemString
The name of the field to filter on. This parameter cannot be null or Empty nor can its length exceed MAX_FIELD_NAME_SIZE characters.
dataType
Type: ContentStudio.Document.EPTXmlIndexQueryQueryDataTypes
Indicates the data type of the field
Exceptions

ExceptionCondition
CSInvalidParameterExceptionThere are too many fields in the collection.
ArgumentNullExceptionThe FieldName cannot be null
ArgumentExceptionThe field name already exists in the collection
ArgumentOutOfRangeException
  • The FieldName is empty or too long
  • DataType has an invalid value
See Also

Reference