CreateResourceDefinition

CreateResourceDefinition (1 of 2)

Factory method which creates a simple extended attribute definition, which Microsoft Project shows as “None”. It has CalculationType equals to Tasks::CalculationType::None and can be used in Resource only. You are required to specify customFieldType , fieldId and alias when call this method.

Returns: Created instance of the ExtendedAttributeDefinition class with specified customFieldType , fieldId and alias .

CreateResourceDefinition(CustomFieldType customFieldType, ExtendedAttributeResource fieldId, const System::String & alias)
ParameterDescription
customFieldTypeThe specified CustomFieldType type.
fieldIdThe specified ExtendedAttributeResource field ID.
aliasThe specified System::String alias.

CreateResourceDefinition (2 of 2)

Factory method which creates a simple extended attribute definition, which Microsoft Project shows as “None”. It has CalculationType equals to Tasks::CalculationType::None and can be used in Resource only. You are required to specify fieldId and alias when call this method. The field type is inferred from field id.

Returns: Created instance of the ExtendedAttributeDefinition class with specified fieldId and alias .

CreateResourceDefinition(ExtendedAttributeResource fieldId, const System::String & alias)
ParameterDescription
fieldIdThe specified ExtendedAttributeResource field ID.
aliasThe specified System::String alias.