IWbsFieldsRepository.CreateFieldInstance Method

The factory method that creates new IWbsField objects. The new field object is not added to the repository.
Function CreateFieldInstance( _ 
ByVal fieldKind As WbsFieldKind, _ 
ByVal mnemonic As String
) As IWbsField
This language is not supported or no code example is available.
IWbsField CreateFieldInstance( 
WbsFieldKind fieldKind
string mnemonic 
)
This language is not supported or no code example is available.

Parameters

fieldKind
WbsFieldKind

The kind of the field to be created. If the value is WbsFieldKind.BreakdownField, then a master breakdown field is created.

mnemonic
string

A mnemonic of the field to be created. May be null reference (Nothing in Visual Basic) if you don't want to set mnemonic yet. However, you must supply this argument if fieldKind is set to WbsFieldKind.SpecialField, because in this case the IWbsField.Mnemonic property cannot be set after the field is created.

Return Value

IWbsField
Remarks
 
The new field object is not added to the repository. You must use AddField method for that. The returned object has the IWbsField.NumericID property correctly set to a unique value.
Version
 
Available since QDV 7.18.655.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition