ScheduleDefinition.InsertField
Description:
Adds a regular field at the specified position in the list.
Adds a regular field at the specified position in the list.
Overloads (3):
InsertField(ScheduleFieldType,ElementId,Int32)
public ScheduleField InsertField(
ScheduleFieldType fieldType,
ElementId parameterId,
int index
)
-
fieldTypeThe type of data displayed by the field.
-
parameterIdThe ID of the parameter displayed by the field.
-
Int32indexThe index in the list of fields.
Return Value
The new field.
The new field.
-
A non-optional argument was null
-
index is not a valid insert position. -or- A value passed for an enumeration argument is not a member of that enumeration
-
The field specified by fieldType and parameterId may not included in this ScheduleDefinition. -or- The field specified by fieldType and parameterId is already included in this ScheduleDefinition.