RVTDocs.com

ScheduleDefinition.InsertField(SchedulableField, Int32)

Method
Description:
Adds a regular field at the specified position in the list.
Syntax
public ScheduleField InsertField(
	SchedulableField schedulableField,
	int index
)
Parameters
Parameter Type Description
schedulableField SchedulableField A SchedulableField object representing the field.
index Int32 The index in the list of fields.
Return Value
Type Description
ScheduleField The new field.
Exceptions
Exception Condition
ArgumentException The field specified by schedulableField may not included in this ScheduleDefinition. -or- The field specified by schedulableField is already included in this ScheduleDefinition.
ArgumentNullException A non-optional argument was null
ArgumentOutOfRangeException index is not a valid insert position.