IWbsFieldsRepository.DeleteField Method

Deletes a field.
Sub DeleteField( _ 
ByVal fieldNumericID As Integer
)
This language is not supported or no code example is available.
void DeleteField( 
int fieldNumericID 
)
This language is not supported or no code example is available.

Parameters

fieldNumericID
int

The IWbsField.NumericID of the field to be removed.

Exception type Condition

InvalidOperationException

  • The current QDV edition doesn't allow to change the definitions of WBS fields. Only Enterprise and higher allows this.
  • The field to be deleted is a native field. A native field cannot be deleted.

Remarks
 
If the fieldNumericID belongs to a master breakdown field, then also its child discrete value fields are deleted (they are stored in IWbsFieldMasterBreakdownInfo.BreakdownByDiscreteValues). Similarly, if the fieldNumericID belongs to a breakdown discrete value field, then this field will be removed from the IWbsFieldMasterBreakdownInfo.BreakdownByDiscreteValues collection of its master field.

Also non-Admin is allowed to define the fields with this method.

This method doesn't refresh the UI with the changes. You need to call RepaintWbsWithChanges method after you have finished all your changes in this fields repository. Or you can call slower IEstimate.CheckAndRepaint.

Version
 
Available since QDV 7.18.655.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition